File harden_osmo-trx-uhd.service.patch of Package osmo-trx

Index: osmo-trx-1.2.0/contrib/systemd/osmo-trx-uhd.service
===================================================================
--- osmo-trx-1.2.0.orig/contrib/systemd/osmo-trx-uhd.service
+++ osmo-trx-1.2.0/contrib/systemd/osmo-trx-uhd.service
@@ -2,6 +2,17 @@
 Description=Osmocom SDR BTS L1 Transceiver (UHD Backend)
 
 [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-trx-uhd -C /etc/osmocom/osmo-trx-uhd.cfg
openSUSE Build Service is sponsored by