[Bugs] [Bug 1161092] nfs: ls shows "Permission denied" with root-squash

bugzilla at redhat.com bugzilla at redhat.com
Thu Nov 13 19:58:04 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1161092



--- Comment #10 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/9085 committed in master by Niels de Vos
(ndevos at redhat.com) 
------
commit 878b30420891c8b00043391cdce90930eaf18795
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: 1161092
    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>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=28TyAPQgIg&a=cc_unsubscribe


More information about the Bugs mailing list