SHA256
1
0
forked from pool/osmo-iuh
osmo-iuh/harden_osmo-hnbgw.service.patch

23 lines
757 B
Diff

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