Bug 1177899
Summary: | nfs: ls shows "Permission denied" with root-squash | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Vijay Bellur <vbellur> |
Component: | nfs | Assignee: | Vijay Bellur <vbellur> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.6.1 | CC: | bugs, gluster-bugs, mmadhusu, ndevos, rabhat, saujain, vagarwal |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-3.6.2 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1161092 | Environment: | |
Last Closed: | 2015-02-11 09:11:00 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1161092 | ||
Bug Blocks: | 1163723 |
Description
Vijay Bellur
2014-12-31 07:35:13 UTC
REVIEW: http://review.gluster.org/9369 (gNFS: Allow reading ACLs even without read permissions on the file.) posted (#1) for review on release-3.6 by Vijay Bellur (vbellur) COMMIT: http://review.gluster.org/9369 committed in release-3.6 by Raghavendra Bhat (raghavendra) ------ commit 0111ab923dd4c8f0985dd566c172cda31492b0f7 Author: Meghana Madhusudhan <mmadhusu> 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> Signed-off-by: Niels de Vos <ndevos> Reviewed-on: http://review.gluster.org/9085 Tested-by: Gluster Build System <jenkins.com> Reviewed-on: http://review.gluster.org/9369 Reviewed-by: Raghavendra Bhat <raghavendra> This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.6.2, please reopen this bug report. glusterfs-3.6.2 has been announced on the Gluster Developers mailinglist [1], packages for several distributions should already be or become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. The fix for this bug likely to be included in all future GlusterFS releases i.e. release > 3.6.2. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/5978 [2] http://news.gmane.org/gmane.comp.file-systems.gluster.user [3] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/6137 |