From 68f2192df570b5ee615d440c2e0c88d49a75a34f 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. 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 --- xlators/system/posix-acl/src/posix-acl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/system') 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