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