SHA256
1
0
forked from pool/chrony
chrony/harden_chronyd.service.patch

21 lines
646 B
Diff
Raw Normal View History

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