File harden_diod.service.patch of Package diod
Index: diod-1.0.24+53.g0d87511/scripts/diod.service.in =================================================================== --- diod-1.0.24+53.g0d87511.orig/scripts/diod.service.in +++ diod-1.0.24+53.g0d87511/scripts/diod.service.in @@ -2,6 +2,18 @@ Description=9P File Server [Service] +# added automatically, for details please see +# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort +ProtectSystem=full +PrivateDevices=true +ProtectHostname=true +ProtectClock=true +ProtectKernelTunables=true +ProtectKernelModules=true +ProtectKernelLogs=true +ProtectControlGroups=true +RestrictRealtime=true +# end of automatic additions Type=forking ExecStart=@X_SBINDIR@/diod