Bug 1165026
Summary: | [USS]: Non root user who has no access to a directory, from NFS mount, is able to access the files under .snaps under that directory | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | senaik | |
Component: | snapshot | Assignee: | Sachin Pandit <spandit> | |
Status: | CLOSED ERRATA | QA Contact: | senaik | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | rhgs-3.0 | CC: | nsathyan, rhinduja, rhs-bugs, rjoseph, spandit, storage-qa-internal, surs | |
Target Milestone: | --- | Keywords: | ZStream | |
Target Release: | RHGS 3.0.3 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | USS | |||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1167580 (view as bug list) | Environment: | ||
Last Closed: | 2015-01-15 13:42:31 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: | 1162694, 1167580, 1175739 |
Description
senaik
2014-11-18 07:10:48 UTC
Did a initial RCA on this. The problem is not in snapd, but it is in the way we handle access call using glfs api. Whenever a access call from glfs is issued a new frame is create in which uid and gid is set to root instead of the user's uid and gid. https://code.engineering.redhat.com/gerrit/#/c/37603/ Fixes the issue. Version : glusterfs 3.6.0.38 ======== Non root user who has no access to a directory gets "Permission denied" error as expected when he tried to access the files under .snaps under that directory. Behavior is the same from fuse and nfs mount Non root user (S2) has no access to a1_fuse and a1_nfs. Fuse mount : =========== [S2@dhcp-0-97 vol_f]$ cd a1_fuse/ bash: cd: a1_fuse/: Permission denied [S2@dhcp-0-97 vol_f]$ cd .snaps [S2@dhcp-0-97 .snaps]$ ll total 0 drwxr-xr-x. 5 S1 root 300 Dec 12 15:16 SN1 [S2@dhcp-0-97 .snaps]$ cd SN1/ [S2@dhcp-0-97 SN1]$ ll total 0 drwx------. 2 S1 root 24 Dec 12 15:19 a1_fuse drwx------. 2 S1 root 6 Dec 12 15:18 a1_nfs [S2@dhcp-0-97 SN1]$ cd a1_fuse/ bash: cd: a1_fuse/: Permission denied NFS mount : ========== [S2@dhcp-0-97 .snaps]$ cd SN1/ [S2@dhcp-0-97 SN1]$ ll total 0 drwx------. 2 S1 root 127 Dec 12 15:19 a1_fuse drwx------. 2 S1 root 127 Dec 12 15:18 a1_nfs [S2@dhcp-0-97 SN1]$ cd a1_nfs/ bash: cd: a1_nfs/: Permission denied Marking the bug as 'Verified' Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0038.html |