File SystemD_Service-Hardening.patch of Package qbittorrent

--- old/dist/unix/systemd/qbittorrent-nox@.service.in	2025-07-02 08:13:03.000000000 +0200
+++ new/dist/unix/systemd/qbittorrent-nox@.service.in	2025-10-11 21:16:50.050792234 +0200
@@ -7,6 +7,18 @@
 [Service]
 Type=simple
 PrivateTmp=false
+# Added automatically, for details please see:
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+PrivateDevices=true
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# End of automatic additions
 User=%i
 ExecStart=@EXPAND_BINDIR@/qbittorrent-nox
 TimeoutStopSec=1800
openSUSE Build Service is sponsored by