numad/harden_numad.service.patch

21 lines
669 B
Diff

Index: numad-0.5.20130522/numad.service
===================================================================
--- numad-0.5.20130522.orig/numad.service
+++ numad-0.5.20130522/numad.service
@@ -2,6 +2,15 @@
Description=numad - The NUMA daemon that manages application locality.
[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+RestrictRealtime=true
+# end of automatic additions
Type=simple
EnvironmentFile=/etc/numad.conf
ExecStart=/usr/sbin/numad -i $INTERVAL -F