diff options
| author | Soumya Koduri <skoduri@redhat.com> | 2017-06-08 22:19:17 +0530 | 
|---|---|---|
| committer | Niels de Vos <ndevos@redhat.com> | 2017-06-09 11:10:01 +0000 | 
| commit | 68f2192df570b5ee615d440c2e0c88d49a75a34f (patch) | |
| tree | 605f97a22f77a93d14e51f008770e6560b2db858 | |
| parent | 66b8462719bee337db85abc5b2ed8657b71f073c (diff) | |
posix-acl: Whitelist virtual ACL xattrs
Similar to system.posix_acl_* xattrs, all users should get
permission to be able to read glusterfs.posix.acl* xattrs too.
Change-Id: I1fc2b67c8a12113910e4ec57cd114e4baefe0d38
BUG: 1459971
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Reviewed-on: https://review.gluster.org/17493
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: jiffin tony Thottan <jthottan@redhat.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
| -rw-r--r-- | xlators/system/posix-acl/src/posix-acl.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/system/posix-acl/src/posix-acl.c b/xlators/system/posix-acl/src/posix-acl.c index 5883bcbf050..5dac688e02d 100644 --- a/xlators/system/posix-acl/src/posix-acl.c +++ b/xlators/system/posix-acl/src/posix-acl.c @@ -62,6 +62,10 @@ whitelisted_xattr (const char *key)                  return 1;          if (strcmp (POSIX_ACL_DEFAULT_XATTR, key) == 0)                  return 1; +        if (strcmp (GF_POSIX_ACL_ACCESS, key) == 0) +                return 1; +        if (strcmp (GF_POSIX_ACL_DEFAULT, key) == 0) +                return 1;          return 0;  }  | 
