369d376210
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/923524 OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=128
25 lines
832 B
Diff
25 lines
832 B
Diff
Index: man-db-2.9.4/init/systemd/man-db.service.in
|
|
===================================================================
|
|
--- man-db-2.9.4.orig/init/systemd/man-db.service.in
|
|
+++ man-db-2.9.4/init/systemd/man-db.service.in
|
|
@@ -4,6 +4,19 @@ Documentation=man:mandb(8)
|
|
ConditionACPower=true
|
|
|
|
[Service]
|
|
+# added automatically, for details please see
|
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
+ProtectSystem=full
|
|
+ProtectHome=true
|
|
+PrivateDevices=true
|
|
+ProtectHostname=true
|
|
+ProtectClock=true
|
|
+ProtectKernelTunables=true
|
|
+ProtectKernelModules=true
|
|
+ProtectKernelLogs=true
|
|
+ProtectControlGroups=true
|
|
+RestrictRealtime=true
|
|
+# end of automatic additions
|
|
Type=oneshot
|
|
# Recover from deletion, per FHS.
|
|
ExecStart=+/usr/bin/install -d -o @cache_top_owner@ -g @cache_top_owner@ -m 0755 /var/cache/man
|