File harden_osmo-sgsn.service.patch of Package osmo-sgsn
Index: osmo-sgsn-1.6.2/contrib/systemd/osmo-sgsn.service =================================================================== --- osmo-sgsn-1.6.2.orig/contrib/systemd/osmo-sgsn.service +++ osmo-sgsn-1.6.2/contrib/systemd/osmo-sgsn.service @@ -5,6 +5,17 @@ After=osmo-hlr.service After=osmo-hnbgw.service [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-sgsn -c /etc/osmocom/osmo-sgsn.cfg