Package: libsane
Version: 1.0.22-2
Followup-For: Bug #623119
To have the ACL working, I need to remount the particular filesystem
with "acl" flag.
The following fixed operation of setfacl with my test file:
wzab:~# mount -o remount,acl /
wzab:~# /usr/bin/setfacl -m g:scanner:rw /root/test
wzab:~# /usr/bin/getfacl /root/test
getfacl: Removing leading '/' from absolute path names
# file: root/test
# owner: root
# group: root
user::rw-
group::rw-
group:scanner:rw-
mask::rw-
other::r--
So to make the original 60-libsane.rules working, one should:
first correct the path to setfacl utility, and
next - ensure that the kernel is compiled with
CONFIG_TMPFS_POSIX_ACL=y,
and that /etc/init.d/udev mounts the /dev filesystem with "acl" flag
which AFAIK is not the case:
============ quoting from /etc/init.d/udev =============
# mount a tmpfs over /dev, if somebody did not already do it
mount_tmpfs() {
if grep -E -q "^[^[:space:]]+ /dev (dev)?tmpfs" /proc/mounts; then
mount -n -o remount,${dev_mount_options} -t tmpfs tmpfs /dev
return
fi
if ! mount -n -o $dev_mount_options -t tmpfs tmpfs /dev; then
log_failure_msg "udev requires tmpfs support, not started."
log_end_msg 1
fi
return 0
}
[...]
dev_mount_options='mode=0755'
if [ "$tmpfs_size" ]; then
dev_mount_options="size=${tmpfs_size},${dev_mount_options}"
fi
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]