2020-11-09 05:23:58 +01:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-18 17:35:03 +01:00
|
|
|
#
|
2011-06-15 15:37:39 +02:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-12 00:20:58 +02:00
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
2011-06-15 15:37:39 +02:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Time & Date Service
|
2020-09-29 08:03:10 +02:00
|
|
|
Documentation=man:systemd-timedated.service(8)
|
|
|
|
Documentation=man:localtime(5)
|
|
|
|
Documentation=man:org.freedesktop.timedate1(5)
|
2011-06-15 15:37:39 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
BusName=org.freedesktop.timedate1
|
2016-08-26 13:23:27 +02:00
|
|
|
CapabilityBoundingSet=CAP_SYS_TIME
|
2019-05-01 14:28:36 +02:00
|
|
|
DeviceAllow=char-rtc r
|
2018-11-12 17:19:48 +01:00
|
|
|
ExecStart=@rootlibexecdir@/systemd-timedated
|
|
|
|
IPAddressDeny=any
|
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
NoNewPrivileges=yes
|
2014-03-19 16:45:28 +01:00
|
|
|
PrivateTmp=yes
|
2020-08-06 14:50:38 +02:00
|
|
|
ProtectProc=invisible
|
2016-08-26 13:23:27 +02:00
|
|
|
ProtectControlGroups=yes
|
2018-11-12 17:19:48 +01:00
|
|
|
ProtectHome=yes
|
2019-02-18 23:30:12 +01:00
|
|
|
ProtectHostname=yes
|
2020-08-06 14:50:38 +02:00
|
|
|
ProtectKernelLogs=yes
|
2017-02-09 11:09:50 +01:00
|
|
|
ProtectKernelModules=yes
|
2018-11-12 17:19:48 +01:00
|
|
|
ProtectKernelTunables=yes
|
|
|
|
ProtectSystem=strict
|
|
|
|
ReadWritePaths=/etc
|
2016-08-26 13:23:27 +02:00
|
|
|
RestrictAddressFamilies=AF_UNIX
|
2018-11-12 17:19:48 +01:00
|
|
|
RestrictNamespaces=yes
|
|
|
|
RestrictRealtime=yes
|
2019-03-20 19:52:20 +01:00
|
|
|
RestrictSUIDSGID=yes
|
2017-02-08 22:32:37 +01:00
|
|
|
SystemCallArchitectures=native
|
2018-11-12 17:19:48 +01:00
|
|
|
SystemCallErrorNumber=EPERM
|
|
|
|
SystemCallFilter=@system-service @clock
|
2019-10-25 12:17:24 +02:00
|
|
|
@SERVICE_WATCHDOG@
|