libvma/harden_vma.service.patch

25 lines
790 B
Diff

Index: libvma-9.3.1.0.47396f1a5eaa/contrib/scripts/vma.service.in
===================================================================
--- libvma-9.3.1.0.47396f1a5eaa.orig/contrib/scripts/vma.service.in
+++ libvma-9.3.1.0.47396f1a5eaa/contrib/scripts/vma.service.in
@@ -3,6 +3,19 @@ Description=VMA Daemon
After=network.target
[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=forking
Restart=on-failure
ExecStart=@prefix@/sbin/vmad