linuxptp/phc2sys.service

37 lines
887 B
SYSTEMD
Raw Permalink Normal View History

2012-09-21 13:54:54 +00:00
[Unit]
2012-11-09 14:07:42 +00:00
Description=Synchronize system clock or PTP hardware clock (PHC)
After=ntpdate.service ptp4l.service
2012-09-21 13:54:54 +00:00
[Service]
Type=simple
EnvironmentFile=-/etc/sysconfig/phc2sys
ExecStart=/usr/sbin/phc2sys $OPTIONS
CapabilityBoundingSet=CAP_SYS_TIME
DeviceAllow=char-pps rw
DeviceAllow=char-ptp rw
DevicePolicy=closed
LockPersonality=yes
MemoryDenyWriteExecute=yes
# This does not work with selinux
#NoNewPrivileges=yes
PrivateTmp=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectProc=invisible
ProtectSystem=strict
ReadWritePaths=/run
RestrictAddressFamilies=AF_UNIX
RestrictNamespaces=yes
RestrictSUIDSGID=yes
SystemCallArchitectures=native
SystemCallFilter=~@cpu-emulation @debug @module @mount @obsolete @raw-io
SystemCallFilter=~@reboot @resources @swap
2012-09-21 13:54:54 +00:00
[Install]
WantedBy=multi-user.target