From 48b4aa06f85f791efc66871007e7a5ed58b16237 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 4 Dec 2014 07:20:35 +0530 Subject: protocol/server: No root-squash checks for self-heal pid Backport of http://review.gluster.org/9231 Problem: Self-heal pid used to be -1 which was colliding with gsyncd. Gsyncd was not checked for root-squash authentication. Recently self-heal pid changed to -6, but root-squash authentication is not disabled for this. Fix: disable root-squash authentication for self-heal Change-Id: I594a732d800902ce805f849813631da36d8d3dc7 BUG: 1170514 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/9234 Tested-by: Gluster Build System Reviewed-by: Raghavendra Bhat Tested-by: Raghavendra Bhat --- xlators/protocol/server/src/server-helpers.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/protocol/server') diff --git a/xlators/protocol/server/src/server-helpers.c b/xlators/protocol/server/src/server-helpers.c index dbd26539b2f..545be6e9580 100644 --- a/xlators/protocol/server/src/server-helpers.c +++ b/xlators/protocol/server/src/server-helpers.c @@ -467,6 +467,7 @@ get_frame_from_request (rpcsvc_request_t *req) req->pid != GF_CLIENT_PID_NO_ROOT_SQUASH && req->pid != GF_CLIENT_PID_GSYNCD && req->pid != GF_CLIENT_PID_DEFRAG && + req->pid != GF_CLIENT_PID_AFR_SELF_HEALD && req->pid != GF_CLIENT_PID_QUOTA_MOUNT) RPC_AUTH_ROOT_SQUASH (req); -- cgit