File harden_osmo-hnbgw.service.patch of Package osmo-iuh

Index: osmo-iuh-0.7.0/contrib/systemd/osmo-hnbgw.service
===================================================================
--- osmo-iuh-0.7.0.orig/contrib/systemd/osmo-hnbgw.service
+++ osmo-iuh-0.7.0/contrib/systemd/osmo-hnbgw.service
@@ -2,6 +2,17 @@
 Description=Osmocom Home Nodeb Gateway (OsmoHNBGW)
 
 [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-hnbgw -c /etc/osmocom/osmo-hnbgw.cfg
openSUSE Build Service is sponsored by