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/925374 OBS-URL: https://build.opensuse.org/package/show/network:utilities/netlabel?expand=0&rev=19
23 lines
736 B
Diff
23 lines
736 B
Diff
Index: netlabel_tools-0.21/netlabelctl/netlabel.service
|
|
===================================================================
|
|
--- netlabel_tools-0.21.orig/netlabelctl/netlabel.service
|
|
+++ netlabel_tools-0.21/netlabelctl/netlabel.service
|
|
@@ -6,6 +6,17 @@ Before=libvirtd.service
|
|
Before=network.service
|
|
|
|
[Service]
|
|
+# added automatically, for details please see
|
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
+ProtectSystem=full
|
|
+ProtectHome=true
|
|
+ProtectHostname=true
|
|
+ProtectKernelTunables=true
|
|
+ProtectKernelModules=true
|
|
+ProtectKernelLogs=true
|
|
+ProtectControlGroups=true
|
|
+RestrictRealtime=true
|
|
+# end of automatic additions
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/sbin/netlabel-config load
|