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