File harden_atop-rotate.service.patch of Package atop

Index: atop-2.9.0/atop-rotate.service
===================================================================
--- atop-2.9.0.orig/atop-rotate.service
+++ atop-2.9.0/atop-rotate.service
@@ -3,5 +3,18 @@ Description=Restart atop daemon to rotat
 Documentation=man:atop(1)
 
 [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
 ExecStart=/usr/bin/systemctl restart atop.service
openSUSE Build Service is sponsored by
OSZAR »