[Bugs] [Bug 1177899] nfs: ls shows "Permission denied" with root-squash
bugzilla at redhat.com
bugzilla at redhat.com
Fri Jan 2 09:46:01 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1177899
--- Comment #2 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/9369 committed in release-3.6 by Raghavendra
Bhat (raghavendra at redhat.com)
------
commit 0111ab923dd4c8f0985dd566c172cda31492b0f7
Author: Meghana Madhusudhan <mmadhusu at redhat.com>
Date: Mon Nov 10 15:20:51 2014 +0530
gNFS: Allow reading ACLs even without read permissions on the file.
When root-squash is enabled or when no permissions are given to
a file, NFS threw permission errors. According to the kernel-nfs
behaviour, no permissions are required to read ACLs.
When no ACLs are set, the system call sys_lgetxattr fails and
returns a ENODATA error. This translates to ESERVERFAULT error
in NFS. Fuse makes an exception to this error and returns a success
case. Similar changes are made here to achieve the expected behaviour.
Change-Id: I46b8f5911114eb087a3f8ca4e921b6b41e83f3b3
BUG: 1177899
Signed-off-by: Meghana Madhusudhan <mmadhusu at redhat.com>
Signed-off-by: Niels de Vos <ndevos at redhat.com>
Reviewed-on: http://review.gluster.org/9085
Tested-by: Gluster Build System <jenkins at build.gluster.com>
Reviewed-on: http://review.gluster.org/9369
Reviewed-by: Raghavendra Bhat <raghavendra at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list