Bug 1459972 - posix-acl: Whitelist virtual ACL xattrs
Summary: posix-acl: Whitelist virtual ACL xattrs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: core
Version: rhgs-3.3
Hardware: All
OS: All
unspecified
high
Target Milestone: ---
: RHGS 3.3.0
Assignee: Soumya Koduri
QA Contact: Manisha Saini
URL:
Whiteboard:
Depends On: 1459971 1460649 1460650
Blocks: 1417151 1441131
TreeView+ depends on / blocked
 
Reported: 2017-06-08 17:24 UTC by Soumya Koduri
Modified: 2017-09-21 04:59 UTC (History)
4 users (show)

Fixed In Version: glusterfs-3.8.4-28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1459971
: 1460647 (view as bug list)
Environment:
Last Closed: 2017-09-21 04:59:42 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2774 0 normal SHIPPED_LIVE glusterfs bug fix and enhancement update 2017-09-21 08:16:29 UTC

Description Soumya Koduri 2017-06-08 17:24:22 UTC
+++ This bug was initially created as a clone of Bug #1459971 +++

Description of problem:

Similar to system.posix_acl_* xattrs, all users should be able to read virtual acl xattrs too (glusterfs.posix-acl-*). 

Otherwise it shall result in EACCESS error when any non-root user is trying to ACL of any file created under gluster volume.

Version-Release number of selected component (if applicable):


How reproducible:
Always


Steps to Reproduce:
1. Start NFS-ganesha using a non-root user
2. Export a volume via NFS-Ganesha
3. Mount the volume using NFSv4
4. Try to read/get acl.


Actual results:
It results in "Permission denied" error.

Expected results:
All users should be able to read POSIX ACLs for any file.

Additional info:

Comment 2 Soumya Koduri 2017-06-08 17:29:26 UTC
Patch posted upstream for review - https://review.gluster.org/17493

Comment 3 Atin Mukherjee 2017-06-09 08:12:18 UTC
I believe this issue blocks BZ 1450836 and given the later is already approved for rhgs-3.3.0, this bug needs to be fixed for rhgs-3.3.0 and hence giving devel_ack.

Comment 4 Soumya Koduri 2017-06-12 10:55:26 UTC
Downstream patch:
https://code.engineering.redhat.com/gerrit/108787

Comment 9 Manisha Saini 2017-07-24 08:43:48 UTC
Verified this bug on 

# rpm -qa | grep ganesha
glusterfs-ganesha-3.8.4-34.el7rhgs.x86_64
nfs-ganesha-2.4.4-16.el7rhgs.x86_64
nfs-ganesha-gluster-2.4.4-16.el7rhgs.x86_64

-----------
Reproduced on 3.2
-----------

[root@dhcp37-192 posix]# touch ms
[root@dhcp37-192 posix]# ll
total 0
-rw-r--r--. 1 root root 0 Jul 24 13:07 ms
[root@dhcp37-192 posix]# chmod 700 ms 
[root@dhcp37-192 posix]# ll
total 0
-rwx------. 1 root root 0 Jul 24 13:07 ms
[root@dhcp37-192 posix]#  getfattr -n glusterfs.posix.acl /mnt/ganesha32_async/posix/ms 
getfattr: Removing leading '/' from absolute path names
# file: mnt/ganesha32_async/posix/ms
glusterfs.posix.acl="u::rwx,g::---,o::---"

[root@dhcp37-192 posix]# su user1
[user1@dhcp37-192 posix]$ getfattr -n glusterfs.posix.acl /mnt/ganesha32_async/posix/ms
/mnt/ganesha32_async/posix/ms: glusterfs.posix.acl: Permission denied
[user1@dhcp37-192 posix]$ 

===================================

----------
Verified on 3.3.
----------


[root@dhcp37-192 posix]# touch ms
[root@dhcp37-192 posix]# ll
total 0
-rw-r--r--. 1 root root 0 Jul 24 13:08 ms
[root@dhcp37-192 posix]# chmod 700 ms
[root@dhcp37-192 posix]# ll
total 0
-rwx------. 1 root root 0 Jul 24 13:08 ms
[root@dhcp37-192 posix]# getfattr -n glusterfs.posix.acl /mnt/ganesha33_disperse/posix/ms 
getfattr: Removing leading '/' from absolute path names
# file: mnt/ganesha33_disperse/posix/ms
glusterfs.posix.acl="u::rwx,g::---,o::---"

[root@dhcp37-192 posix]# su user1
[user1@dhcp37-192 posix]$ getfattr -n glusterfs.posix.acl /mnt/ganesha33_disperse/posix/ms 
getfattr: Removing leading '/' from absolute path names
# file: mnt/ganesha33_disperse/posix/ms
glusterfs.posix.acl="u::rwx,g::---,o::---"

Moving this bug to verified state.

Comment 11 errata-xmlrpc 2017-09-21 04:59:42 UTC
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://access.redhat.com/errata/RHBA-2017:2774


Note You need to log in before you can comment on or make changes to this bug.