I ran into a bit of flapping with my init.d acct lately, and in tracing
why, I noticed that there seems to be absolutely no way that the kernel
exposes to show that it's running any accounting.
Could we expose acct_list in sysfs or procfs, as uid:0, gid:0, perms
0600?
--
Robin Hugh Johnson
Gentoo Linux Developer & Infra Guy
E-Mail : [email protected]
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85
On Tue, Oct 07, 2008 at 04:53:31PM -0700, Robin H. Johnson wrote:
> I ran into a bit of flapping with my init.d acct lately, and in tracing
> why, I noticed that there seems to be absolutely no way that the kernel
> exposes to show that it's running any accounting.
>
> Could we expose acct_list in sysfs or procfs, as uid:0, gid:0, perms
> 0600?
What other OS do in this respect?
On Wed, Oct 08, 2008 at 07:40:28PM +0400, Alexey Dobriyan wrote:
> On Tue, Oct 07, 2008 at 04:53:31PM -0700, Robin H. Johnson wrote:
> > Could we expose acct_list in sysfs or procfs, as uid:0, gid:0, perms
> > 0600?
> What other OS do in this respect?
Searching indicates that FreeBSD exports two sysctls, acct_configured
and acct_suspended.
I'm not sure from reading their source if they support multiple
concurrent accounting targets , as I'm not familar with their VFS code.
(Linux does, and you can see it used if you start use bootchart in an
init that also brings up a normal accounting instance)
--
Robin Hugh Johnson
Gentoo Linux Developer & Infra Guy
E-Mail : [email protected]
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85