File harden_osmo-pcu.service.patch of Package osmo-pcu
Index: osmo-pcu-0.8.0/contrib/systemd/osmo-pcu.service =================================================================== --- osmo-pcu-0.8.0.orig/contrib/systemd/osmo-pcu.service +++ osmo-pcu-0.8.0/contrib/systemd/osmo-pcu.service @@ -2,6 +2,17 @@ Description=Osmocom osmo-pcu [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 ExecStart=/usr/bin/osmo-pcu -c /etc/osmocom/osmo-pcu.cfg Restart=always