Hi all,
The debian 3.1.2 package recently had a bug raised against it concenring the
rrds in
/var/lib/ganglia having permissions of 666, and therefore being corruptable or
truncatable by any user. I've fixed this fro the debian package by the
following patch,
but thought you might want to knw about the issue.
Stu
---------------------------------8<-----------------------------------------
diff --git a/lib/daemon_init.c b/lib/daemon_init.c
index c5f004e..c052c3c 100644
--- a/lib/daemon_init.c
+++ b/lib/daemon_init.c
@@ -92,7 +92,7 @@ daemon_init (const char *pname, int facility)
i = chdir ("/"); /* change working directory */
- umask (0); /* clear our file mode creation mask */
+ umask (0002); /* clear our file mode creation mask */
for (i = 0; i < MAXFD; i++)
close (i);
--
>From the prompt of Stu Teasdale
No, that'd be silly.
-- Larry Wall in <[email protected]>
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers