File harden_osmo-hlr.service.patch of Package osmo-hlr
Index: osmo-hlr-1.2.0/contrib/systemd/osmo-hlr.service =================================================================== --- osmo-hlr-1.2.0.orig/contrib/systemd/osmo-hlr.service +++ osmo-hlr-1.2.0/contrib/systemd/osmo-hlr.service @@ -3,6 +3,17 @@ Description=Osmocom Home Location Regist Documentation=https://osmocom.org/projects/osmo-hlr/wiki/OsmoHLR [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-hlr -c /etc/osmocom/osmo-hlr.cfg -l /var/lib/osmocom/hlr.db