This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: STABLE3 - cman: Allow connections from unprivilegeduser/group "ais"
- From: Christine Caulfield <chrissie at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Wed, 18 Feb 2009 11:12:29 +0000 (UTC)
- Subject: cluster: STABLE3 - cman: Allow connections from unprivilegeduser/group "ais"
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=4ee81b60d86a4147b35cf71c41bfe24a2a8632cb
Commit: 4ee81b60d86a4147b35cf71c41bfe24a2a8632cb
Parent: 7539016097186bca54d0929bc5f1ae0791bd8afe
Author: Christine Caulfield <ccaulfie@redhat.com>
AuthorDate: Wed Feb 18 11:11:56 2009 +0000
Committer: Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Wed Feb 18 11:11:56 2009 +0000
cman: Allow connections from unprivileged user/group "ais"
bz#485469
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
cman/daemon/cman-preconfig.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c
index d518e6d..c1e7d1b 100644
--- a/cman/daemon/cman-preconfig.c
+++ b/cman/daemon/cman-preconfig.c
@@ -774,18 +774,17 @@ static void add_cman_overrides(struct objdb_iface_ver0 *objdb)
}
- /* Don't run under user "ais" */
+ /* Make sure we allow connections from user/group "ais" */
objdb->object_find_create(OBJECT_PARENT_HANDLE, "aisexec", strlen("aisexec"), &find_handle);
if (objdb->object_find_next(find_handle, &object_handle) != 0) {
objdb->object_create(OBJECT_PARENT_HANDLE, &object_handle,
"aisexec", strlen("aisexec"));
-
}
objdb->object_find_destroy(find_handle);
objdb->object_key_create(object_handle, "user", strlen("user"),
- "root", strlen("root") + 1);
+ "ais", strlen("ais") + 1);
objdb->object_key_create(object_handle, "group", strlen("group"),
- "root", strlen("root") + 1);
+ "ais", strlen("ais") + 1);
objdb->object_find_create(cluster_parent_handle, "cman", strlen("cman"), &find_handle);
if (objdb->object_find_next(find_handle, &object_handle) == 0)