SHA256
1
0
forked from pool/neard
neard/harden_neard.service.patch
2021-10-15 15:03:03 +00:00

23 lines
680 B
Diff

Index: neard-0.16/src/neard.service.in
===================================================================
--- neard-0.16.orig/src/neard.service.in
+++ neard-0.16/src/neard.service.in
@@ -3,6 +3,17 @@ Description=neard service
Documentation=man:neard(8)
[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=dbus
BusName=org.neard
ExecStart=@pkglibexecdir@/neard -n