-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move usb autoattach files into securedrop_salt
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Class 08 == storage, subclass 06 == SCSI | ||
# Class 07 == printer, subclass 01 == printer | ||
# https://www.usb.org/defined-class-codes | ||
# https://www.usb.org/document-library/mass-storage-class-specification-overview-14 | ||
# https://www.usb.org/document-library/printer-device-class-document-11 | ||
ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0806??:*|*:0701??:*", RUN+="/usr/local/bin/sd-attach-export-device" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/bash | ||
|
||
# udev action for attaching USB export devices to sd-devices | ||
|
||
QDEVNAME="$(basename "$DEVPATH")" | ||
echo sys-usb "$QDEVNAME" | qrexec-client-vm sd-devices qubes.USBAttach |