sane-backends: run (xinetd) saned as non-root
authorLuiz Angelo Daros de Luca <redacted>
Sat, 1 Jun 2019 06:30:23 +0000 (03:30 -0300)
committerLuiz Angelo Daros de Luca <redacted>
Sat, 21 Dec 2019 23:44:56 +0000 (20:44 -0300)
commit794c950b32454a4b83faa1078ee83bf1a2041569
tree5ea6ec183b4b192f453294a3488987a40cfde924
parent9c901e1bd10ee4d6a58e1e2cdd1c297483caf99e
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 <redacted>
utils/hplip/Makefile
utils/hplip/files/20-hplip [deleted file]
utils/sane-backends/Makefile
utils/sane-backends/files/saned.hotplug [new file with mode: 0755]
utils/sane-backends/files/saned.xinetd
git clone https://git.99rst.org/PROJECT