forked from pool/e2fsprogs
aa2b862d09
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/918932 OBS-URL: https://build.opensuse.org/package/show/filesystems/e2fsprogs?expand=0&rev=142
22 lines
723 B
Diff
22 lines
723 B
Diff
Index: e2fsprogs-1.46.3/scrub/e2scrub@.service.in
|
|
===================================================================
|
|
--- e2fsprogs-1.46.3.orig/scrub/e2scrub@.service.in
|
|
+++ e2fsprogs-1.46.3/scrub/e2scrub@.service.in
|
|
@@ -10,6 +10,16 @@ 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
|
|
+ProtectClock=true
|
|
+ProtectKernelTunables=true
|
|
+ProtectKernelModules=true
|
|
+ProtectKernelLogs=true
|
|
+ProtectControlGroups=true
|
|
+RestrictRealtime=true
|
|
+# end of automatic additions
|
|
AmbientCapabilities=CAP_SYS_ADMIN CAP_SYS_RAWIO
|
|
NoNewPrivileges=yes
|
|
User=root
|