forked from pool/chrony
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort OBS-URL: https://build.opensuse.org/request/show/915264 OBS-URL: https://build.opensuse.org/package/show/network:time/chrony?expand=0&rev=104
25 lines
786 B
Diff
25 lines
786 B
Diff
Index: chrony-4.1/examples/chrony-wait.service
|
|
===================================================================
|
|
--- chrony-4.1.orig/examples/chrony-wait.service
|
|
+++ chrony-4.1/examples/chrony-wait.service
|
|
@@ -7,6 +7,19 @@ Before=time-sync.target
|
|
Wants=time-sync.target
|
|
|
|
[Service]
|
|
+# added automatically, for details please see
|
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
+ProtectSystem=full
|
|
+ProtectHome=true
|
|
+PrivateDevices=true
|
|
+ProtectHostname=true
|
|
+ProtectClock=true
|
|
+ProtectKernelTunables=true
|
|
+ProtectKernelModules=true
|
|
+ProtectKernelLogs=true
|
|
+ProtectControlGroups=true
|
|
+RestrictRealtime=true
|
|
+# end of automatic additions
|
|
Type=oneshot
|
|
# Wait for chronyd to update the clock and the remaining
|
|
# correction to be less than 0.1 seconds
|