Hi,
the current way in which we try to determine uid and gid is wrong.
The patch first tries to determine whatever has been configured in
corosync.conf and if that fails, try to determine the default
user/group.
Using this init sequence allows users to avoid to have an ais user in
the system that might not be required at all to run.
Fabio
Index: exec/mainconfig.c
===================================================================
--- exec/mainconfig.c (revision 2104)
+++ exec/mainconfig.c (working copy)
@@ -689,15 +689,15 @@
goto parse_error;
}
+ ug_config->uid = -1;
+ ug_config->gid = -1;
+
objdb->object_find_create (
OBJECT_PARENT_HANDLE,
"aisexec",
strlen ("aisexec"),
&object_find_handle);
- ug_config->uid = uid_determine("ais");
- ug_config->gid = gid_determine("ais");
-
if (objdb->object_find_next (
object_find_handle,
&object_service_handle) == 0) {
@@ -713,6 +713,13 @@
objdb->object_find_destroy (object_find_handle);
+ if (ug_config->uid < 0) {
+ ug_config->uid = uid_determine("ais");
+ }
+ if (ug_config->gid < 0) {
+ ug_config->gid = gid_determine("ais");
+ }
+
add_logsys_config_notification(objdb);
logsys_fork_completed ();
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais