]>
Commit | Line | Data |
---|---|---|
a7df2d1e ZJS |
1 | # SPDX-License-Identifier: LGPL-2.1+ |
2 | # | |
f401e48c LP |
3 | # This file is part of systemd. |
4 | # | |
5 | # systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
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 | |
f401e48c LP |
8 | # (at your option) any later version. |
9 | ||
f401e48c LP |
10 | [Unit] |
11 | Description=Time & Date Service | |
608da9e9 | 12 | Documentation=man:systemd-timedated.service(8) man:localtime(5) |
16a5d412 | 13 | Documentation=https://www.freedesktop.org/wiki/Software/systemd/timedated |
f401e48c LP |
14 | |
15 | [Service] | |
f401e48c | 16 | BusName=org.freedesktop.timedate1 |
0c28d51a | 17 | CapabilityBoundingSet=CAP_SYS_TIME |
9af28206 | 18 | DeviceAllow=char-rtc r |
3ca9940c LP |
19 | ExecStart=@rootlibexecdir@/systemd-timedated |
20 | IPAddressDeny=any | |
21 | LockPersonality=yes | |
22 | MemoryDenyWriteExecute=yes | |
23 | NoNewPrivileges=yes | |
d99a7052 | 24 | PrivateTmp=yes |
0c28d51a | 25 | ProtectControlGroups=yes |
3ca9940c | 26 | ProtectHome=yes |
99894b86 | 27 | ProtectHostname=yes |
b6c7278c | 28 | ProtectKernelModules=yes |
3ca9940c | 29 | ProtectKernelTunables=yes |
6168ae58 | 30 | ProtectKernelLogs=yes |
3ca9940c LP |
31 | ProtectSystem=strict |
32 | ReadWritePaths=/etc | |
0c28d51a | 33 | RestrictAddressFamilies=AF_UNIX |
3ca9940c LP |
34 | RestrictNamespaces=yes |
35 | RestrictRealtime=yes | |
62aa2924 | 36 | RestrictSUIDSGID=yes |
7f396e5f | 37 | SystemCallArchitectures=native |
3ca9940c LP |
38 | SystemCallErrorNumber=EPERM |
39 | SystemCallFilter=@system-service @clock | |
21d0dd5a | 40 | @SERVICE_WATCHDOG@ |