File harden_collectl.service.patch of Package collectl
Index: collectl-4.3.1/service/collectl.service =================================================================== --- collectl-4.3.1.orig/service/collectl.service +++ collectl-4.3.1/service/collectl.service @@ -2,6 +2,19 @@ Description=collectl metric collection [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/collectl.pid ExecStart=/usr/bin/collectl -D