On Mon, Jul 14, 2003 at 02:45:59PM -0700, Brooks Davis ([EMAIL PROTECTED]) wrote: > I'd like to propose that gmond.c be modifed such that metric_init is > called before become_a_nobody drops privs. This change plus a rewrite > of gmond/machines/freebsd.c allows FreeBSD to preopen /dev/kmem and > leave a handle to it which should increase efficency and allow gmond to > run reliably on FreeBSD with lowered privleges. The changes I've made > are below. > > The patch uses libkvm on FreeBSD 4.x and switches to the unprivleged > vm.swap_info sysctl if available (5.0+). > > I've been running this patch for quite some time.
Thanks for the patch, this'll be useful to me, I'd never taken the time to work on this bug. Not to mention add any -CURRENT improvements. I'll eagerly apply patches to bugs that I've caused. :) Do those with veto power object to calling metric_init() before become_a_nobody()? If there's no reason not to, I'll check in this patch. -- Preston Smith <[EMAIL PROTECTED]> UNIX Analyst Purdue University Physics Computer Network GPG Fingerprint: 6D27 5DAA F58D C42B 7A6B 8F48 04E4 2465 F353 03F6