diff options
author | Pacho Ramos <pacho@gentoo.org> | 2022-01-22 12:19:47 +0100 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2022-01-22 12:20:07 +0100 |
commit | 15b01aed0650b4f7621558ca101573caae398297 (patch) | |
tree | 6f1ac4598a27710b573976e7f07ea4f207277068 /media-gfx/sane-backends/files/66-saned.rules | |
parent | dev-python/vpython: fix ebuild (diff) | |
download | gentoo-15b01aed0650b4f7621558ca101573caae398297.tar.gz gentoo-15b01aed0650b4f7621558ca101573caae398297.tar.bz2 gentoo-15b01aed0650b4f7621558ca101573caae398297.zip |
media-gfx/sane-backends: Avoid scanner group usage
scanner group usage ends up breaking cups printing due to changing
permissions and owners of devices in an uncontrolled way (#644636)
Follow CUPS upstream suggestion to generate udev rules as other
distributions (Fedora or Arch, for example) to avoid this issue.
https://github.com/OpenPrinting/cups/issues/314
https://gitlab.com/sane-project/backends/-/issues/546
https://wiki.gentoo.org/wiki/Printing#USB_Printer_is_not_detected
Bug: https://bugs.gentoo.org/644636
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'media-gfx/sane-backends/files/66-saned.rules')
-rw-r--r-- | media-gfx/sane-backends/files/66-saned.rules | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/media-gfx/sane-backends/files/66-saned.rules b/media-gfx/sane-backends/files/66-saned.rules new file mode 100644 index 000000000000..3c9ec85d4822 --- /dev/null +++ b/media-gfx/sane-backends/files/66-saned.rules @@ -0,0 +1,2 @@ +# udev rule for saned (SANE scanning daemon) to be able to write on usb port +ENV{libsane_matched}=="yes", ENV{DEVNAME}!="", RUN+="/usr/bin/setfacl -m g:saned:rw $env{DEVNAME}" |