2fc51f9063
- Add ReadWritePaths=/etc/frr to harden_frr.service.patch (bsc#1181400). OBS-URL: https://build.opensuse.org/request/show/937520 OBS-URL: https://build.opensuse.org/package/show/network/frr?expand=0&rev=36
43 lines
1.2 KiB
Diff
43 lines
1.2 KiB
Diff
Index: frr-frr-8.1/tools/frr.service.in
|
|
===================================================================
|
|
--- frr-frr-8.1.orig/tools/frr.service.in
|
|
+++ frr-frr-8.1/tools/frr.service.in
|
|
@@ -7,6 +7,16 @@ Before=network.target
|
|
OnFailure=heartbeat-failed@%n
|
|
|
|
[Service]
|
|
+# added automatically, for details please see
|
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
+ProtectSystem=full
|
|
+ReadWritePaths=/etc/frr
|
|
+ProtectHome=true
|
|
+ProtectKernelModules=true
|
|
+ProtectKernelLogs=true
|
|
+ProtectControlGroups=true
|
|
+RestrictRealtime=true
|
|
+# end of automatic additions
|
|
Nice=-5
|
|
Type=forking
|
|
NotifyAccess=all
|
|
Index: frr-frr-8.1/tools/frr@.service.in
|
|
===================================================================
|
|
--- frr-frr-8.1.orig/tools/frr@.service.in
|
|
+++ frr-frr-8.1/tools/frr@.service.in
|
|
@@ -7,6 +7,16 @@ Before=network.target
|
|
OnFailure=heartbeat-failed@%n
|
|
|
|
[Service]
|
|
+# added automatically, for details please see
|
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
+ProtectSystem=full
|
|
+ReadWritePaths=/etc/frr
|
|
+ProtectHome=true
|
|
+ProtectKernelModules=true
|
|
+ProtectKernelLogs=true
|
|
+ProtectControlGroups=true
|
|
+RestrictRealtime=true
|
|
+# end of automatic additions
|
|
Nice=-5
|
|
Type=forking
|
|
NotifyAccess=all
|