forked from pool/libteam
Dirk Mueller
13a0aeda21
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/925371 OBS-URL: https://build.opensuse.org/package/show/network/libteam?expand=0&rev=20
23 lines
777 B
Diff
23 lines
777 B
Diff
Index: libteam-1.31/teamd/redhat/systemd/teamd@.service
|
|
===================================================================
|
|
--- libteam-1.31.orig/teamd/redhat/systemd/teamd@.service
|
|
+++ libteam-1.31/teamd/redhat/systemd/teamd@.service
|
|
@@ -4,6 +4,17 @@ Before=network-pre.target
|
|
Wants=network-pre.target
|
|
|
|
[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
|
|
BusName=org.libteam.teamd.%i
|
|
ExecStart=/usr/sbin/teamd -U -D -o -t %i -f /run/teamd/%i.conf
|
|
Restart=on-failure
|