File harden_atopacct.service.patch of Package atop.17533

Index: atop-2.6.0/atopacct.service
===================================================================
--- atop-2.6.0.orig/atopacct.service
+++ atop-2.6.0/atopacct.service
@@ -6,6 +6,19 @@ After=syslog.target
 Before=atop.service
 
 [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=forking
 PIDFile=/var/run/atopacctd.pid
 ExecStart=/usr/sbin/atopacctd
openSUSE Build Service is sponsored by