forked from pool/powerman
Stanislav Brabec
02666d7b72
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/926704 OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=43
23 lines
732 B
Diff
23 lines
732 B
Diff
Index: powerman-2.3.26/scripts/powerman.service.in
|
|
===================================================================
|
|
--- powerman-2.3.26.orig/scripts/powerman.service.in
|
|
+++ powerman-2.3.26/scripts/powerman.service.in
|
|
@@ -5,6 +5,17 @@ After=syslog.target network.target
|
|
[Service]
|
|
Type=forking
|
|
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=/usr/sbin/powermand
|