powerman/harden_powerman.service.patch

23 lines
688 B
Diff
Raw Normal View History

Index: b/etc/powerman.service.in
===================================================================
--- a/etc/powerman.service.in
+++ b/etc/powerman.service.in
@@ -5,6 +5,17 @@ After=syslog.target network.target
[Service]
Environment=SHELL=/bin/sh
PrivateTmp=yes
+# 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
User=@RUN_AS_USER@
Group=@RUN_AS_GROUP@
ExecStart=@X_SBINDIR@/powermand