Accepting request 954697 from hardware
OBS-URL: https://build.opensuse.org/request/show/954697 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/usb_modeswitch?expand=0&rev=47
This commit is contained in:
commit
cbd0f728ac
22
harden_usb_modeswitch@.service.patch
Normal file
22
harden_usb_modeswitch@.service.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
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
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 26 12:00:38 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
||||||
|
|
||||||
|
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
|
||||||
|
* harden_usb_modeswitch@.service.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 17 06:17:44 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
Thu Sep 17 06:17:44 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ Source1: https://www.draisberghof.de/usb_modeswitch/%{source_name}-data-%
|
|||||||
Source2: https://www.draisberghof.de/usb_modeswitch/device_reference.txt
|
Source2: https://www.draisberghof.de/usb_modeswitch/device_reference.txt
|
||||||
Source3: https://www.draisberghof.de/usb_modeswitch/parameter_reference.txt
|
Source3: https://www.draisberghof.de/usb_modeswitch/parameter_reference.txt
|
||||||
Patch1: usb_modeswitch-fix_fsf_address.patch
|
Patch1: usb_modeswitch-fix_fsf_address.patch
|
||||||
|
Patch2: harden_usb_modeswitch@.service.patch
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(libusb-1.0)
|
BuildRequires: pkgconfig(libusb-1.0)
|
||||||
@ -59,6 +60,7 @@ Data files for usb_modeswitch package.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -a1 -n %{source_name}-%{version}
|
%setup -q -a1 -n %{source_name}-%{version}
|
||||||
%patch1
|
%patch1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
cp %{SOURCE2} .
|
cp %{SOURCE2} .
|
||||||
cp %{SOURCE3} .
|
cp %{SOURCE3} .
|
||||||
|
Loading…
Reference in New Issue
Block a user