forked from pool/syncthing
Marius Kittler
4ee457e764
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/933476 OBS-URL: https://build.opensuse.org/package/show/network/syncthing?expand=0&rev=226
21 lines
741 B
Diff
21 lines
741 B
Diff
Index: syncthing/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service
|
|
===================================================================
|
|
--- syncthing.orig/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service
|
|
+++ syncthing/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service
|
|
@@ -17,6 +17,15 @@ NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectHome=true
|
|
+# added automatically, for details please see
|
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
+ProtectHostname=true
|
|
+ProtectKernelTunables=true
|
|
+ProtectKernelModules=true
|
|
+ProtectKernelLogs=true
|
|
+ProtectControlGroups=true
|
|
+RestrictRealtime=true
|
|
+# end of automatic additions
|
|
SystemCallArchitectures=native
|
|
MemoryDenyWriteExecute=true
|
|
|