sane-backends: run (xinetd) saned as non-root

saned requires write access scanner USB bus for its process and
to usblp/bind in order to rebind multifunctional printers back
to usblp (for printing with p910nd).

A hotplug script monitor new USB devices for scanners. Scanners
are detected by searching /usr/share/sane/<vendor>-<backend>.usbid
for the device product_id.

The package saned creates user saned:scanners. Access is granted to
group scanners.

The default xinetd conf was updated to run as saned:scanner.

sane-daemon pkg now has a postinst trigger that runs udevtrigger for
granting perms where there are connected scanners during installation.

Existing hotplug scripts from hplip were removed. They were mostly
useless.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
This commit is contained in:
Luiz Angelo Daros de Luca
2019-06-01 03:30:23 -03:00
parent 9c901e1bd1
commit 794c950b32
5 changed files with 73 additions and 35 deletions
+1 -2
View File
@@ -7,8 +7,7 @@ service sane-port
socket_type = stream
port = 6566
wait = no
user = root
# user = saned
user = saned
group = scanner
server = /usr/sbin/saned
disable = yes