mirror of
https://github.com/systemd/systemd.git
synced 2025-03-25 18:50:18 +03:00
make raw USB printer devices world-readable again
Commit f61e72d8 made raw USB printers accessible for the lp group. However, chmoding them to 0660 is a bit over-zealous, since by default raw USB devices are world-readable. Not being so breaks lsusb unnecessarily. Now set permissions to 0664.
This commit is contained in:
parent
bded570432
commit
8d12968558
@ -67,7 +67,7 @@ KERNEL=="irlpt[0-9]*", GROUP="lp"
|
||||
# hplip and cups 1.4+ use raw USB devices, so permissions should be similar to
|
||||
# the ones from the old usblp kernel module
|
||||
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="", IMPORT{program}="usb_id --export %p"
|
||||
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}==":0701*:", GROUP="lp", MODE="660"
|
||||
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}==":0701*:", GROUP="lp", MODE="664"
|
||||
|
||||
# block
|
||||
SUBSYSTEM=="block", GROUP="disk"
|
||||
|
Loading…
x
Reference in New Issue
Block a user