File harden_gssproxy.service.patch of Package gssproxy

Index: gssproxy-0.8.4/systemd/gssproxy.service.in
===================================================================
--- gssproxy-0.8.4.orig/systemd/gssproxy.service.in
+++ gssproxy-0.8.4/systemd/gssproxy.service.in
@@ -5,6 +5,19 @@ After=syslog.target network.target
 Before=rpc-gssd.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 
 Environment=KRB5RCACHEDIR=/var/lib/gssproxy/rcache
 ExecStart=@sbindir@/gssproxy -D
 # These two should be used with traditional UNIX forking daemons
openSUSE Build Service is sponsored by