forked from pool/restorecond
d73b34fb18
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/932204 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/restorecond?expand=0&rev=23
21 lines
679 B
Diff
21 lines
679 B
Diff
Index: restorecond-3.2/restorecond.service
|
|
===================================================================
|
|
--- restorecond-3.2.orig/restorecond.service
|
|
+++ restorecond-3.2/restorecond.service
|
|
@@ -5,6 +5,15 @@ ConditionPathExists=/etc/selinux/restore
|
|
ConditionSecurity=selinux
|
|
|
|
[Service]
|
|
+# added automatically, for details please see
|
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
+ProtectHostname=true
|
|
+ProtectKernelTunables=true
|
|
+ProtectKernelModules=true
|
|
+ProtectKernelLogs=true
|
|
+ProtectControlGroups=true
|
|
+RestrictRealtime=true
|
|
+# end of automatic additions
|
|
Type=forking
|
|
ExecStart=/usr/sbin/restorecond
|
|
PIDFile=/run/restorecond.pid
|