From 51eee2bf5c878920e83b118422e193fd087e0778 Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Thu, 8 Jun 2017 22:19:17 +0530 Subject: 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 >Change-Id: I1fc2b67c8a12113910e4ec57cd114e4baefe0d38 >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) Change-Id: I0e22e28d053481d201223631342362a27a4a8f36 BUG: 1460647 Signed-off-by: Soumya Koduri Reviewed-on: https://review.gluster.org/17512 NetBSD-regression: NetBSD Build System Smoke: Gluster Build System CentOS-regression: Gluster Build System Reviewed-by: Shyamsundar Ranganathan --- xlators/system/posix-acl/src/posix-acl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators') 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; } -- cgit