File harden_osmo-bsc-mgcp.service.patch of Package openbsc

Index: openbsc-1.4.0/openbsc/contrib/systemd/osmo-bsc-mgcp.service
===================================================================
--- openbsc-1.4.0.orig/openbsc/contrib/systemd/osmo-bsc-mgcp.service
+++ openbsc-1.4.0/openbsc/contrib/systemd/osmo-bsc-mgcp.service
@@ -2,6 +2,17 @@
 Description=OpenBSC MGCP
 
 [Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions 
 Type=simple
 Restart=always
 ExecStart=/usr/bin/osmo-bsc_mgcp -s -c /etc/osmocom/osmo-bsc-mgcp.cfg
openSUSE Build Service is sponsored by