]>
Commit | Line | Data |
---|---|---|
a7df2d1e ZJS |
1 | # SPDX-License-Identifier: LGPL-2.1+ |
2 | # | |
a91df40e KS |
3 | # This file is part of systemd. |
4 | # | |
5 | # systemd is free software; you can redistribute it and/or modify it | |
6 | # under the terms of the GNU Lesser General Public License as published by | |
7 | # the Free Software Foundation; either version 2.1 of the License, or | |
8 | # (at your option) any later version. | |
9 | ||
10 | [Unit] | |
11 | Description=Network Time Synchronization | |
12 | Documentation=man:systemd-timesyncd.service(8) | |
13 | ConditionCapability=CAP_SYS_TIME | |
4b16233e | 14 | ConditionVirtualization=!container |
689d781b | 15 | DefaultDependencies=no |
e0f968ad | 16 | After=systemd-sysusers.service |
4ea0f675 | 17 | Before=time-set.target sysinit.target shutdown.target |
ece6e766 | 18 | Conflicts=shutdown.target |
4ea0f675 | 19 | Wants=time-set.target time-sync.target |
a91df40e KS |
20 | |
21 | [Service] | |
87a85e25 | 22 | AmbientCapabilities=CAP_SYS_TIME |
e67b818c | 23 | BusName=org.freedesktop.timesync1 |
3ca9940c LP |
24 | CapabilityBoundingSet=CAP_SYS_TIME |
25 | ExecStart=!!@rootlibexecdir@/systemd-timesyncd | |
26 | LockPersonality=yes | |
27 | MemoryDenyWriteExecute=yes | |
28 | NoNewPrivileges=yes | |
a349eb10 | 29 | PrivateDevices=yes |
3ca9940c | 30 | PrivateTmp=yes |
24da96a1 | 31 | ProtectProc=invisible |
0c28d51a | 32 | ProtectControlGroups=yes |
3ca9940c | 33 | ProtectHome=yes |
99894b86 | 34 | ProtectHostname=yes |
24da96a1 | 35 | ProtectKernelLogs=yes |
b6c7278c | 36 | ProtectKernelModules=yes |
3ca9940c LP |
37 | ProtectKernelTunables=yes |
38 | ProtectSystem=strict | |
39 | Restart=always | |
40 | RestartSec=0 | |
0c28d51a | 41 | RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 |
3ca9940c LP |
42 | RestrictNamespaces=yes |
43 | RestrictRealtime=yes | |
62aa2924 | 44 | RestrictSUIDSGID=yes |
2dd79846 | 45 | RuntimeDirectory=systemd/timesync |
53d133ea | 46 | StateDirectory=systemd/timesync |
3ca9940c LP |
47 | SystemCallArchitectures=native |
48 | SystemCallErrorNumber=EPERM | |
49 | SystemCallFilter=@system-service @clock | |
50 | Type=notify | |
51 | User=systemd-timesync | |
21d0dd5a | 52 | @SERVICE_WATCHDOG@ |
a91df40e KS |
53 | |
54 | [Install] | |
ece6e766 | 55 | WantedBy=sysinit.target |
e7dd3947 | 56 | Alias=dbus-org.freedesktop.timesync1.service |