Leonardo Chiquitto <leonardo.li...@gmail.com> wrote:

> open("/data", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
> fcntl(3, F_GETFD)                       = 0x1 (flags FD_CLOEXEC)
> getdents64(3, /* 3 entries */, 32768)   = 72
> lstat("/data/isos", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
> lgetxattr("/data/isos", "security.selinux", 0x62ad60, 255) = -1 EOPNOTSUPP 
> (Operation not supported)
> getxattr("/data/isos", "system.posix_acl_access", 0x0, 0) = -1 EOPNOTSUPP 
> (Operation not supported)
> getdents64(3, /* 0 entries */, 32768)   = 0

Yeah, I suspect the getxattr() is the problem.  ls calls libacl to get the
Posix ACL of the target file, but that uses the getxattr() which asserts
LOOKUP_FOLLOW during the pathwalk, causing the automount unconditionally:-/

I'm discussing this with the coreutils and acl package maintainers to see if
we can fix it in userspace.

David

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to