diff options
author | Venky Shankar <vshankar@redhat.com> | 2014-05-21 20:49:22 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2014-05-25 19:52:24 -0700 |
commit | be8a3845c7d76d7da66ad278618ff29d0b81903c (patch) | |
tree | e21070e3ba570599e487b2f53a7531f33b534a84 /geo-replication | |
parent | 74cc911d4301905d0722a943ca2b844637d4dc74 (diff) |
gsyncd : Use --remote-host option during cli invocation
Required for unprivileged geo-replication sessions to
execute glusterd commands (which are however restricted).
Change-Id: Ib83b81defa061717f4465ffa665450d0f5d3d20d
BUG: 1077452
Signed-off-by: Venky Shankar <vshankar@redhat.com>
Reviewed-on: http://review.gluster.org/7833
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'geo-replication')
-rw-r--r-- | geo-replication/src/gsyncd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/geo-replication/src/gsyncd.c b/geo-replication/src/gsyncd.c index 21864db4af2..11599760457 100644 --- a/geo-replication/src/gsyncd.c +++ b/geo-replication/src/gsyncd.c @@ -116,6 +116,7 @@ invoke_gsyncd (int argc, char **argv) /* in restricted mode we forcibly use the system-wide config */ runinit (&runner); runner_add_args (&runner, SBIN_DIR"/gluster", + "--remote-host=localhost", "--log-file=-", "system::", "getwd", NULL); runner_redir (&runner, STDOUT_FILENO, RUN_PIPE); |