Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=15…
Commit: 151afdf127ff1ac118c13c712d49617c77640d8d
Parent: cddeef5a35a6c4be8ab351079d77b953d3b6db83
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Mon Aug 29 07:46:09 2011 +0200
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Mon Aug 29 07:46:09 2011 +0200
config: allow cman to configure uid/gid for corosync IPC
Resolves: rhbz#733345
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
---
cman/daemon/cman-preconfig.c | 1 +
config/tools/xml/cluster.rng.in.head | 22 ++++++++++++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c
index 4b8419e..64f505f 100644
--- a/cman/daemon/cman-preconfig.c
+++ b/cman/daemon/cman-preconfig.c
@@ -1532,6 +1532,7 @@ static int cmanpre_readconfig(struct objdb_iface_ver0 *objdb, const char **error
ret = copy_tree_to_root(objdb, "amf", 0);
ret = copy_tree_to_root(objdb, "aisexec", 0);
ret = copy_tree_to_root(objdb, "service", 1);
+ ret = copy_tree_to_root(objdb, "uidgid", 0);
}
objdb->object_find_create(cluster_parent_handle, "cman", strlen("cman"), &find_handle);
diff --git a/config/tools/xml/cluster.rng.in.head b/config/tools/xml/cluster.rng.in.head
index 7696533..1afa9e8 100644
--- a/config/tools/xml/cluster.rng.in.head
+++ b/config/tools/xml/cluster.rng.in.head
@@ -7,6 +7,7 @@ xmlns:rha="http://redhat.com/~pkennedy/annotation_namespace/cluster_conf_annot_n
cluster
- cman
- totem
+- uidgid
- quorumd
- fence_daemon
- fence_xvmd
@@ -169,6 +170,27 @@ To validate your cluster.conf against this schema, run:
</optional>
<!-- end cman block -->
+<!-- uidgid block -->
+ <optional>
+ <zeroOrMore>
+ <element name="uidgid" rha:description="Access control to corosync IPC">
+ <optional>
+ <attribute name="uid" rha:description="This is an unprivileged username,
+ as globally available to the system via /etc/passwd, including nis/ldap,
+ allowed to connect to corosync IPC. This value cannot be updated at runtime,
+ a full cman restart is required." rha:default="" rha:samble="userfoo"/>
+ </optional>
+ <optional>
+ <attribute name="gid" rha:description="This is an unprivileged group name,
+ as globally available to the system via /etc/group, including nis/ldap,
+ allowed to connect to corosync IPC. This value cannot be updated at runtime,
+ a full cman restart is required." rha:default="" rha:samble="groupfoo"/>
+ </optional>
+ </element>
+ </zeroOrMore>
+ </optional>
+<!-- end uidgid block -->
+
<!-- totem block -->
<optional>
<element name="totem" rha:description="OpenAIS msg transport
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=56…
Commit: 56c2db3425674c9fc0679b03e2b5f2ad9219fec4
Parent: 0000000000000000000000000000000000000000
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: 2011-08-24 14:36 +0000
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: 2011-08-24 14:36 +0000
annotated tag: cluster-3.1.6 has been created
at 56c2db3425674c9fc0679b03e2b5f2ad9219fec4 (tag)
tagging cddeef5a35a6c4be8ab351079d77b953d3b6db83 (commit)
replaces cluster-3.1.5
cluster-3.1.6 release
Christine Caulfield (1):
cman: Print an error if cluster name is too long
David Teigland (1):
dlm_controld: fix plock dev_write no op
Fabio M. Di Nitto (8):
config: fix escaping of xml special characters
cman: fix printing of error if clustername is too long
cman: fix handling of transport="xxx" in cman/totem preconfig
cman: do not free shutdown connection till the last message is sent
Revert "cman: do not free shutdown connection till the last message is sent"
cman: check and set transport only when parsing primary interface
cman: make RRP mode passive the default
dlm_controld: fix build with old (< 3.0) kernel headers (take 2)
Lon Hohberger (6):
rgmanager: Create process group for children
rgmanager: Add -F to clusvcadm man page
rgmanager: Add 'disabled' configuration option
config: Add 'disabled' flag to rm element
rgmanager: Fix clusvcadm message when run with -F
rgmanager: Fix race in shutdown vs. notification