forked from pool/keepalived
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/922505 OBS-URL: https://build.opensuse.org/package/show/network/keepalived?expand=0&rev=75
25 lines
824 B
Diff
25 lines
824 B
Diff
Index: keepalived-2.2.2/keepalived/keepalived.service.in
|
|
===================================================================
|
|
--- keepalived-2.2.2.orig/keepalived/keepalived.service.in
|
|
+++ keepalived-2.2.2/keepalived/keepalived.service.in
|
|
@@ -4,6 +4,19 @@ After=network-online.target syslog.targe
|
|
Wants=network-online.target @SNMP_SERVICE@
|
|
|
|
[Service]
|
|
+# added automatically, for details please see
|
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
+ProtectSystem=full
|
|
+ProtectHome=true
|
|
+PrivateDevices=true
|
|
+ProtectHostname=true
|
|
+ProtectClock=true
|
|
+ProtectKernelTunables=true
|
|
+ProtectKernelModules=true
|
|
+ProtectKernelLogs=true
|
|
+ProtectControlGroups=true
|
|
+RestrictRealtime=true
|
|
+# end of automatic additions
|
|
Type=@SYSTEMD_SERVICE_TYPE@
|
|
PIDFile=@RUN_DIR@/run/keepalived.pid
|
|
KillMode=process
|