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/943706 OBS-URL: https://build.opensuse.org/package/show/hardware/thinkfan?expand=0&rev=6
21 lines
753 B
Diff
21 lines
753 B
Diff
Index: thinkfan-1.3.0/rcscripts/systemd/thinkfan.service.cmake
|
|
===================================================================
|
|
--- thinkfan-1.3.0.orig/rcscripts/systemd/thinkfan.service.cmake
|
|
+++ thinkfan-1.3.0/rcscripts/systemd/thinkfan.service.cmake
|
|
@@ -4,6 +4,15 @@ After=sysinit.target
|
|
After=systemd-modules-load.service
|
|
|
|
[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
|
|
EnvironmentFile=-/etc/sysconfig/thinkfan
|
|
Type=forking
|
|
ExecStart=@CMAKE_INSTALL_PREFIX@/sbin/thinkfan $THINKFAN_ARGS
|