forked from pool/ledmon
Dirk Mueller
255e374254
- Don't use ProtectKernelTunables, can break some use cases (bsc#1210656) OBS-URL: https://build.opensuse.org/request/show/1082992 OBS-URL: https://build.opensuse.org/package/show/Base:System/ledmon?expand=0&rev=47
22 lines
679 B
Diff
22 lines
679 B
Diff
Index: ledmon-0.96/systemd/ledmon.service.in
|
|
===================================================================
|
|
--- ledmon-0.96.orig/systemd/ledmon.service.in
|
|
+++ ledmon-0.96/systemd/ledmon.service.in
|
|
@@ -5,6 +5,16 @@ Description=Enclosure LED Utilities
|
|
WantedBy=multi-user.target
|
|
|
|
[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
|
|
+ProtectControlGroups=true
|
|
+RestrictRealtime=true
|
|
+# end of automatic additions
|
|
Type=simple
|
|
User=root
|
|
ExecStart=@sbindir@/ledmon --foreground
|