File harden_ospfd.service.patch of Package quagga
Index: quagga-1.2.4/redhat/ospfd.service
===================================================================
--- quagga-1.2.4.orig/redhat/ospfd.service
+++ quagga-1.2.4/redhat/ospfd.service
@@ -8,6 +8,18 @@
Documentation=man:ospfd
[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
+ReadWritePaths=/etc/quagga
+# end of automatic additions
Type=forking
PIDFile=/run/quagga/ospfd.pid
EnvironmentFile=/etc/sysconfig/quagga