From 96eece8abbb9c06f0b91f37e718ac9e337a3f714 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Mon, 10 Jul 2017 10:31:27 -0400 Subject: posix/gfid2path: Block access to gfid2path xattr via mount gfid2path xattr is an internal xattr and should not be allowed to modify by other applications via gluster mount. This patch blocks the same. Updates: #139 Change-Id: Id2cb29797ee1bd77e0e0d2203a47469fd7203355 Signed-off-by: Kotresh HR Reviewed-on: https://review.gluster.org/17744 Smoke: Gluster Build System Reviewed-by: Prashanth Pai Reviewed-by: Raghavendra Bhat Reviewed-by: Aravinda VK CentOS-regression: Gluster Build System --- xlators/storage/posix/src/posix-gfid-path.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/storage/posix/src/posix-gfid-path.h') diff --git a/xlators/storage/posix/src/posix-gfid-path.h b/xlators/storage/posix/src/posix-gfid-path.h index dbe0c59540d..b1a23752e8f 100644 --- a/xlators/storage/posix/src/posix-gfid-path.h +++ b/xlators/storage/posix/src/posix-gfid-path.h @@ -22,4 +22,6 @@ posix_set_gfid2path_xattr (xlator_t *, const char *, uuid_t, int32_t posix_remove_gfid2path_xattr (xlator_t *, const char *, uuid_t, const char *); +gf_boolean_t +posix_is_gfid2path_xattr (const char *name); #endif /* _POSIX_GFID_PATH_H */ -- cgit