[Linux-ha-dev] [patch] cib.xml should be owned and r/w by group haclient

Aníbal Monsalve Salazar anibal at sgi.com
Tue Mar 6 21:54:47 MST 2007


Mar  1 15:42:23 adg cib: [6010]: WARN: crm_is_writable: /var/lib/heartbeat/crm/cib.xml should be owned and r/w by group haclient

The above message appears in /var/log/heartbeat.log on adg. The file in question
is mode 0600 (see ls output below), according to the warning it should be 0660.

ls -l /var/lib/heartbeat/crm/cib.xml
-rw------- 1 hacluster haclient 586 Mar  6 18:41 /var/lib/heartbeat/crm/cib.xml

Please consider merging the following patch.

--- lib/crm/common/xml.c~	2007-01-12 13:57:08.000000000 +1100
+++ lib/crm/common/xml.c	2007-03-07 12:58:19.560452799 +1100
@@ -608,7 +608,7 @@
 	char *now_str = NULL;
 	gboolean is_done = FALSE;
 	FILE *file_output_strm = NULL;
-	static mode_t cib_mode = S_IRUSR|S_IWUSR;
+	static mode_t cib_mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP;
 	
 	CRM_CHECK(filename != NULL, return -1);
 


More information about the Linux-HA-Dev mailing list