File harden_osmo-bsc.service.patch of Package osmo-bsc

Index: osmo-bsc-1.6.0/contrib/systemd/osmo-bsc.service
===================================================================
--- osmo-bsc-1.6.0.orig/contrib/systemd/osmo-bsc.service
+++ osmo-bsc-1.6.0/contrib/systemd/osmo-bsc.service
@@ -3,6 +3,17 @@ Description=Osmocom Base Station Control
 Wants=osmo-mgw.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-bsc -c /etc/osmocom/osmo-bsc.cfg -s
openSUSE Build Service is sponsored by