File harden_osmo-sip-connector.service.patch of Package osmo-sip-connector
Index: osmo-sip-connector-1.4.0/contrib/systemd/osmo-sip-connector.service =================================================================== --- osmo-sip-connector-1.4.0.orig/contrib/systemd/osmo-sip-connector.service +++ osmo-sip-connector-1.4.0/contrib/systemd/osmo-sip-connector.service @@ -4,6 +4,17 @@ 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 +ProtectHostname=true +ProtectKernelTunables=true +ProtectKernelModules=true +ProtectKernelLogs=true +ProtectControlGroups=true +RestrictRealtime=true +# end of automatic additions Type=simple Restart=always ExecStart=/usr/bin/osmo-sip-connector -c /etc/osmocom/osmo-sip-connector.cfg