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
21 lines
646 B
Diff
21 lines
646 B
Diff
Index: chrony-4.1/examples/chronyd.service
|
|
===================================================================
|
|
--- chrony-4.1.orig/examples/chronyd.service
|
|
+++ chrony-4.1/examples/chronyd.service
|
|
@@ -17,6 +17,15 @@ ExecStart=/usr/sbin/chronyd $OPTIONS
|
|
PrivateTmp=yes
|
|
ProtectHome=yes
|
|
ProtectSystem=full
|
|
+# added automatically, for details please see
|
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
+PrivateDevices=true
|
|
+ProtectHostname=true
|
|
+ProtectKernelModules=true
|
|
+ProtectKernelLogs=true
|
|
+ProtectControlGroups=true
|
|
+DeviceAllow=char-rtc
|
|
+# end of automatic additions
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|