File harden_osmo-stp.service.patch of Package libosmo-sccp
---
contrib/systemd/osmo-stp.service | 13 +++++++++++++
1 file changed, 13 insertions(+)
Index: libosmo-sccp-1.8.1/contrib/systemd/osmo-stp.service
===================================================================
--- libosmo-sccp-1.8.1.orig/contrib/systemd/osmo-stp.service
+++ libosmo-sccp-1.8.1/contrib/systemd/osmo-stp.service
@@ -5,6 +5,19 @@ After=network-online.target
Wants=network-online.target
[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+PrivateDevices=true
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
Type=simple
Restart=always
StateDirectory=osmocom