From d062e09e0c7925f37cbfc42ef42c7fe6804823fe Mon Sep 17 00:00:00 2001 From: Vijaykumar M Date: Wed, 18 Dec 2013 14:32:25 +0530 Subject: pathinfo: Provide user namespace access. Do not allow to setxattr for pathinfo This change was missed out when submitted patch: http://review.gluster.org/5101/ Change-Id: Ifd32d95089b9bacc5dee80a8b924bb8713dca8a1 Signed-off-by: Vijaykumar M Reviewed-on: http://review.gluster.org/6535 Reviewed-by: Raghavendra G Tested-by: Gluster Build System --- xlators/storage/posix/src/posix-helpers.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/storage') diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c index 86ce08cb3..d2c991900 100644 --- a/xlators/storage/posix/src/posix-helpers.c +++ b/xlators/storage/posix/src/posix-helpers.c @@ -838,6 +838,11 @@ posix_fhandle_pair (xlator_t *this, int fd, int sys_ret = -1; int ret = 0; + if (XATTR_IS_PATHINFO (key)) { + ret = -EACCES; + goto out; + } + sys_ret = sys_fsetxattr (fd, key, value->data, value->len, flags); -- cgit