File harden_rspamd.service.patch of Package rspamd
Index: rspamd-3.1/rspamd.service
===================================================================
--- rspamd-3.1.orig/rspamd.service
+++ rspamd-3.1/rspamd.service
@@ -4,6 +4,19 @@ After=nss-lookup.target network-online.t
Documentation=https://rspamd.com/doc/
[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
LimitNOFILE=1048576
NonBlocking=true
ExecStart=/usr/bin/rspamd -c /etc/rspamd/rspamd.conf -f