forked from pool/usb_modeswitch
75dc410eed
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/934995 OBS-URL: https://build.opensuse.org/package/show/hardware/usb_modeswitch?expand=0&rev=81
23 lines
719 B
Diff
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
|