a3470f
From 98a7692aebbe05a50f39d9c8d3e44fcfb42a580b Mon Sep 17 00:00:00 2001
a3470f
From: moagrawa <moagrawa@redhat.com>
a3470f
Date: Mon, 28 May 2018 19:20:54 +0530
a3470f
Subject: [PATCH 285/305] gluster: Allow only read-only CLI commands via
a3470f
 remote-host
a3470f
a3470f
Problem: Current CLI code allows to run all commands via remote-host
a3470f
         while SSL is enabled even node is not added in trusted storage
a3470f
         pool
a3470f
a3470f
Solution: Change condition in init function in glusterd.c to allow only read-only
a3470f
          CLI commands via remote-host while SSL is enabled.
a3470f
a3470f
BUG: 1582129
a3470f
Change-Id: Ibf427c417437cd051822e30dea11a6c21d0dca6b
a3470f
Signed-off-by: moagrawa <moagrawa@redhat.com>
a3470f
Reviewed-on: https://code.engineering.redhat.com/gerrit/140024
a3470f
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
a3470f
---
a3470f
 xlators/mgmt/glusterd/src/glusterd.c | 5 -----
a3470f
 1 file changed, 5 deletions(-)
a3470f
a3470f
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
a3470f
index ed01b93..78a37eb 100644
a3470f
--- a/xlators/mgmt/glusterd/src/glusterd.c
a3470f
+++ b/xlators/mgmt/glusterd/src/glusterd.c
a3470f
@@ -1750,11 +1750,6 @@ init (xlator_t *this)
a3470f
                         goto out;
a3470f
                 }
a3470f
                 /*
a3470f
-                 * With strong authentication, we can afford to allow
a3470f
-                 * privileged operations over TCP.
a3470f
-                 */
a3470f
-                gd_inet_programs[1] = &gd_svc_cli_prog;
a3470f
-                /*
a3470f
                  * This is the only place where we want secure_srvr to reflect
a3470f
                  * the management-plane setting.
a3470f
                  */
a3470f
-- 
a3470f
1.8.3.1
a3470f