1
0
usb_modeswitch/harden_usb_modeswitch@.service.patch

23 lines
719 B
Diff

Index: usb-modeswitch-2.6.1/usb_modeswitch@.service
===================================================================
--- usb-modeswitch-2.6.1.orig/usb_modeswitch@.service
+++ usb-modeswitch-2.6.1/usb_modeswitch@.service
@@ -2,6 +2,17 @@
Description=USB_ModeSwitch_%i
[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=oneshot
ExecStart=/usr/sbin/usb_modeswitch_dispatcher --switch-mode %i
# Testing