File harden_diod.service.patch of Package diod

Index: diod/etc/diod.service.in
===================================================================
--- diod.orig/etc/diod.service.in
+++ diod/etc/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=exec
 ExecStart=@X_SBINDIR@/diod
 ExecReload=kill -HUP $MAINPID
openSUSE Build Service is sponsored by