File harden_openwsman.service.patch of Package openwsman

Index: openwsman-2.7.0/package/openwsman.service.in
===================================================================
--- openwsman-2.7.0.orig/package/openwsman.service.in
+++ openwsman-2.7.0/package/openwsman.service.in
@@ -3,6 +3,19 @@ Description=Openwsman WS-Management Serv
 After=syslog.target
 
 [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
 ExecStart=@prefix@/sbin/openwsmand -S
 
openSUSE Build Service is sponsored by