forked from pool/strongswan
Jan Engelhardt
0e5610efdc
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort OBS-URL: https://build.opensuse.org/request/show/933481 OBS-URL: https://build.opensuse.org/package/show/network:vpn/strongswan?expand=0&rev=129
23 lines
794 B
Diff
23 lines
794 B
Diff
Index: strongswan-5.9.3/init/systemd/strongswan.service.in
|
|
===================================================================
|
|
--- strongswan-5.9.3.orig/init/systemd/strongswan.service.in
|
|
+++ strongswan-5.9.3/init/systemd/strongswan.service.in
|
|
@@ -3,6 +3,17 @@ Description=strongSwan IPsec IKEv1/IKEv2
|
|
After=network-online.target
|
|
|
|
[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=notify
|
|
ExecStart=@SBINDIR@/charon-systemd
|
|
ExecStartPost=@SBINDIR@/swanctl --load-all --noprompt
|