Bug 1161092
| Summary: | nfs: ls shows "Permission denied" with root-squash | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Meghana <mmadhusu> | ||||
| Component: | nfs | Assignee: | Meghana <mmadhusu> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | mainline | CC: | amainkar, bugs, gluster-bugs, mmadhusu, ndevos, saujain, vagarwal | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | glusterfs-3.7.0 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | 1101438 | ||||||
| : | 1177899 (view as bug list) | Environment: | |||||
| Last Closed: | 2015-05-14 17:28:20 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: | |||||||
| Bug Blocks: | 1101438, 1177899 | ||||||
| Attachments: |
|
||||||
|
Description
Meghana
2014-11-06 11:18:01 UTC
REVIEW: http://review.gluster.org/9064 (When OTHERS are not given any permissions, ACLs are not displayed. Even when there are no permissions to any of the users/groups/others, ACLs and attrs have to be disaplyed. Fixed this by removing unnecessary checks. Signed-off-by: Meghana Madhusudhan <mmadhusu>) posted (#1) for review on master by Meghana M (mmadhusu) REVIEW: http://review.gluster.org/9085 (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 were required to read ACLs and other extended attributes.) posted (#1) for review on master by Meghana M (mmadhusu) Created attachment 955752 [details]
kernel-nfs.logs
I have attached kernel-nfs logs here. I performed numerous tests on kernel-nfs and observed a few things.
1. It doesn't require read permissions for getfacl, ls -l and getfattr commands.
2. Using getfattr commands on an NFS mount, we can only see the nfs_acl attrs.
3. I set extended attributes on the file on a fuse mount. On an NFS mount it is not visible.
4. Extended attrs could not be set on the file on an NFS mount. setfattr commands
are not supported on NFS.
5. nfs4_acl xattrs were visible to the client, without any permissions.
REVIEW: http://review.gluster.org/9085 (gNFS: Allow reading ACLs even without read permissions on the file.) posted (#2) for review on master by Meghana M (mmadhusu) REVIEW: http://review.gluster.org/9085 (gNFS: Allow reading ACLs even without read permissions on the file.) posted (#3) for review on master by Meghana M (mmadhusu) REVIEW: http://review.gluster.org/9085 (gNFS: Allow reading ACLs even without read permissions on the file.) posted (#4) for review on master by Niels de Vos (ndevos) REVIEW: http://review.gluster.org/9085 (gNFS: Allow reading ACLs even without read permissions on the file.) posted (#5) for review on master by Meghana M (mmadhusu) REVIEW: http://review.gluster.org/9085 (gNFS: Allow reading ACLs even without read permissions on the file.) posted (#6) for review on master by Meghana M (mmadhusu) REVIEW: http://review.gluster.org/9085 (gNFS: Allow reading ACLs even without read permissions on the file.) posted (#7) for review on master by Niels de Vos (ndevos) COMMIT: http://review.gluster.org/9085 committed in master by Niels de Vos (ndevos) ------ commit 878b30420891c8b00043391cdce90930eaf18795 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: 1161092 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> Thanks a lot to Niels and Soumya for their help and timely reviews! 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.7.0, please open a new bug report. glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user 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.7.0, please open a new bug report. glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user 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.7.0, please open a new bug report. glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user 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.7.0, please open a new bug report. glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user |