Blame SOURCES/chrony-services.patch

8d00b6
diff --git a/examples/chrony-wait.service b/examples/chrony-wait.service
8d00b6
index 72b028f2..b3aa7aa2 100644
8d00b6
--- a/examples/chrony-wait.service
8d00b6
+++ b/examples/chrony-wait.service
8d00b6
@@ -16,32 +16,5 @@ TimeoutStartSec=180
8d00b6
 RemainAfterExit=yes
8d00b6
 StandardOutput=null
8d00b6
 
8d00b6
-CapabilityBoundingSet=
8d00b6
-DevicePolicy=closed
8d00b6
-DynamicUser=yes
8d00b6
-IPAddressAllow=localhost
8d00b6
-IPAddressDeny=any
8d00b6
-LockPersonality=yes
8d00b6
-MemoryDenyWriteExecute=yes
8d00b6
-PrivateDevices=yes
8d00b6
-PrivateUsers=yes
8d00b6
-ProcSubset=pid
8d00b6
-ProtectClock=yes
8d00b6
-ProtectControlGroups=yes
8d00b6
-ProtectHome=yes
8d00b6
-ProtectHostname=yes
8d00b6
-ProtectKernelLogs=yes
8d00b6
-ProtectKernelModules=yes
8d00b6
-ProtectKernelTunables=yes
8d00b6
-ProtectProc=invisible
8d00b6
-ProtectSystem=strict
8d00b6
-RestrictAddressFamilies=AF_INET AF_INET6
8d00b6
-RestrictNamespaces=yes
8d00b6
-RestrictRealtime=yes
8d00b6
-SystemCallArchitectures=native
8d00b6
-SystemCallFilter=@system-service
8d00b6
-SystemCallFilter=~@privileged @resources
8d00b6
-UMask=0777
8d00b6
-
8d00b6
 [Install]
8d00b6
 WantedBy=multi-user.target
8d00b6
diff --git a/examples/chronyd.service b/examples/chronyd.service
8d00b6
index 4fb930ef..289548cb 100644
8d00b6
--- a/examples/chronyd.service
8d00b6
+++ b/examples/chronyd.service
8d00b6
@@ -10,40 +10,9 @@ Type=forking
8d00b6
 PIDFile=/run/chrony/chronyd.pid
8d00b6
 EnvironmentFile=-/etc/sysconfig/chronyd
8d00b6
 ExecStart=/usr/sbin/chronyd $OPTIONS
8d00b6
-
8d00b6
-CapabilityBoundingSet=~CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_AUDIT_WRITE
8d00b6
-CapabilityBoundingSet=~CAP_BLOCK_SUSPEND CAP_KILL CAP_LEASE CAP_LINUX_IMMUTABLE
8d00b6
-CapabilityBoundingSet=~CAP_MAC_ADMIN CAP_MAC_OVERRIDE CAP_MKNOD CAP_SYS_ADMIN
8d00b6
-CapabilityBoundingSet=~CAP_SYS_BOOT CAP_SYS_CHROOT CAP_SYS_MODULE CAP_SYS_PACCT
8d00b6
-CapabilityBoundingSet=~CAP_SYS_PTRACE CAP_SYS_RAWIO CAP_SYS_TTY_CONFIG CAP_WAKE_ALARM
8d00b6
-DeviceAllow=char-pps rw
8d00b6
-DeviceAllow=char-ptp rw
8d00b6
-DeviceAllow=char-rtc rw
8d00b6
-DevicePolicy=closed
8d00b6
-LockPersonality=yes
8d00b6
-MemoryDenyWriteExecute=yes
8d00b6
-NoNewPrivileges=yes
8d00b6
 PrivateTmp=yes
8d00b6
-ProcSubset=pid
8d00b6
-ProtectControlGroups=yes
8d00b6
 ProtectHome=yes
8d00b6
-ProtectHostname=yes
8d00b6
-ProtectKernelLogs=yes
8d00b6
-ProtectKernelModules=yes
8d00b6
-ProtectKernelTunables=yes
8d00b6
-ProtectProc=invisible
8d00b6
-ProtectSystem=strict
8d00b6
-ReadWritePaths=/run /var/lib/chrony -/var/log
8d00b6
-RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
8d00b6
-RestrictNamespaces=yes
8d00b6
-RestrictSUIDSGID=yes
8d00b6
-SystemCallArchitectures=native
8d00b6
-SystemCallFilter=~@cpu-emulation @debug @module @mount @obsolete @raw-io @reboot @swap
8d00b6
-
8d00b6
-# Adjust restrictions for /usr/sbin/sendmail (mailonchange directive)
8d00b6
-NoNewPrivileges=no
8d00b6
-ReadWritePaths=-/var/spool
8d00b6
-RestrictAddressFamilies=AF_NETLINK
8d00b6
+ProtectSystem=full
8d00b6
 
8d00b6
 [Install]
8d00b6
 WantedBy=multi-user.target