2008-10-08 00:17:19

by Robin H. Johnson

[permalink] [raw]
Subject: kernel/acct.c and testing for accounting still running?

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


Attachments:
(No filename) (425.00 B)
(No filename) (329.00 B)
Download all attachments

2008-10-08 15:37:58

by Alexey Dobriyan

[permalink] [raw]
Subject: Re: kernel/acct.c and testing for accounting still running?

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?

2008-10-09 21:21:37

by Robin H. Johnson

[permalink] [raw]
Subject: Re: kernel/acct.c and testing for accounting still running?

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


Attachments:
(No filename) (760.00 B)
(No filename) (329.00 B)
Download all attachments