File harden_keepalived.service.patch of Package keepalived
--- keepalived-2.2.8/keepalived/keepalived.service.in.orig 2023-08-15 11:27:14.555011339 +0200
+++ keepalived-2.2.8/keepalived/keepalived.service.in 2023-08-15 11:27:47.799261734 +0200
@@ -8,6 +8,19 @@
Documentation=https://keepalived.org
[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=false
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
Type=@SYSTEMD_SERVICE_TYPE@
PIDFile=@RUN_DIR@/run/keepalived.pid
KillMode=process