On Thu, Jan 15, 2004 at 03:18:43PM +0100, Sander van Vliet wrote: > Can somebody tell me when ganglia becomes a non-root user because it might be > possible to implement create_mount_list() before that so we can access the > disks directly.
If you take a look at main() in gmond.c you'll see that metric_init() is called just before privleges are dropped by the become_a_nobody() function. Thus, if you open your file descriptors in metric_init() you will be able to maintain privleged access to the disks with dropping other privleges. -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
pgpagBjgUeukT.pgp
Description: PGP signature