From e1155ff4b07729a5af162c368f6e04da8b3ee13e Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Thu, 8 Jun 2017 22:19:17 +0530 Subject: [PATCH 509/509] 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. This is backport of below mainline patch - https://review.gluster.org/17493 >BUG: 1459971 >Signed-off-by: Soumya Koduri >Reviewed-on: https://review.gluster.org/17493 >Smoke: Gluster Build System >Reviewed-by: jiffin tony Thottan >NetBSD-regression: NetBSD Build System >CentOS-regression: Gluster Build System >Reviewed-by: Raghavendra Talur >Reviewed-by: Niels de Vos >(cherry picked from commit 68f2192df570b5ee615d440c2e0c88d49a75a34f) release-3.11 : https://review.gluster.org/#/c/17512/ release-3.10 : https://review.gluster.org/#/c/17513/ release-3.8 : https://review.gluster.org/#/c/17514/ BUG: 1459972 Change-Id: I0f9118463357e393f10c74583e16c50e2c7bba68 Signed-off-by: Soumya Koduri Reviewed-on: https://code.engineering.redhat.com/gerrit/108787 Reviewed-by: Atin Mukherjee --- xlators/system/posix-acl/src/posix-acl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xlators/system/posix-acl/src/posix-acl.c b/xlators/system/posix-acl/src/posix-acl.c index 8a21202..1c82e8b 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; } -- 1.8.3.1