Bug#789593: libsane udev rules file uses setfacl even if device file system does not support ACLs

2015-06-28 Thread Jörg Frings-Fürst
tags 789593 + pending
thanks


Hi Steve,

since 1.0.22-1 sane-backends requires the /dev filesystem to support
ACLs.

I have add your workaround to TROUBLESHOOTING.Debian.

Thank you for spending your time helping to make Debian better with
this bug report.


CU
Jörg


signature.asc
Description: This is a digitally signed message part


Bug#770176: Bug#789593: libsane udev rules file uses setfacl even if device file system does not support ACLs

2015-06-28 Thread Jörg Frings-Fürst
tags 770176 + pending
thanks


Hi Steve,

since 1.0.22-1 sane-backends requires the /dev filesystem to support
ACLs.

I have add your workaround to TROUBLESHOOTING.Debian.

Thank you for spending your time helping to make Debian better with
this bug report.


CU
Jörg

-- 
New:
GPG Fingerprint: 63E0 075F C8D4 3ABB 35AB  30EE 09F8 9F3C 8CA1 D25D
GPG key (long) : 09F89F3C8CA1D25D
GPG Key: 8CA1D25D
CAcert Key S/N : 0E:D4:56

Old pgp Key: BE581B6E (revoked since 2014-12-31).

Jörg Frings-Fürst
D-54526 Niederkail

Threema: SYR8SJXB

IRC: j_...@freenode.net
 j_...@oftc.net

My wish list: 
 - Please send me a picture from the nature at your home.




signature.asc
Description: This is a digitally signed message part


Bug#789593: libsane udev rules file uses setfacl even if device file system does not support ACLs

2015-06-22 Thread Steve Graham

Package: libsane
Version: 1.0.24-13

The file /lib/udev/rules.d/60-libsane.rules uses the command /bin/setfacl -m g:scanner:rw 
$env{DEVNAME} to add the scanner group with rw access to the device permissions.


In my case, with /dev on an ext4 filesystem with no ACL support enabled in the kernel, setfacl 
returns Operation not supported. I assume this is because it's trying to add a group, which is not 
possible in its fallback mode of traditional Unix-style file permissions.


As a workaround, I have substituted /bin/chown root:scanner $env{DEVNAME} as the command at the 
end of 60-libsane.rules (an alternative would be to use a UDEV rule element to change the ownership).


As mentioned, I have a custom kernel build, from Linux 4.0.4 x86_64, with no ACL support. (Kernel 
config help suggests Say N.)


# lsusb
.
.
Bus 005 Device 008: ID 04a9:2206 Canon, Inc. CanoScan N650U/N656U
.
.
# ls -l /dev/bus/usb/005/008
crw-rw-r-- 1 root root 189, 519 Jun 22 12:09 /dev/bus/usb/005/008
# /bin/setfacl -m g:scanner:rw /dev/bus/usb/005/008
setfacl: /dev/bus/usb/005/008: Operation not supported
# chown root:scanner /dev/bus/usb/005/008
# ls -l /dev/bus/usb/005/008
crw-rw-r-- 1 root scanner 189, 519 Jun 22 12:09 /dev/bus/usb/005/008
#

(Reporting via mail because reportbug won't run! I'll debug that now.)


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org