e2fsprogs/harden_e2scrub@.service.patch
OBS User dirkmueller 0463362d75 - Drop ProtectClock hardening, can cause issues if other device acceess is needed
Rev filesystems/145 Md5 421d39e952eff089006ffbd2104d3c1f 2021-10-16 09:37:28 dirkmueller 925452
2021-10-16 09:37:28 +00:00

20 lines
677 B
Diff

Index: e2fsprogs-1.46.4/scrub/e2scrub@.service.in
===================================================================
--- e2fsprogs-1.46.4.orig/scrub/e2scrub@.service.in
+++ e2fsprogs-1.46.4/scrub/e2scrub@.service.in
@@ -10,6 +10,14 @@ PrivateNetwork=true
ProtectSystem=true
ProtectHome=read-only
PrivateTmp=yes
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectHostname=true
+ProtectKernelTunables=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
AmbientCapabilities=CAP_SYS_ADMIN CAP_SYS_RAWIO
NoNewPrivileges=yes
User=root