diff options
author | bmilekic <bmilekic@FreeBSD.org> | 2003-07-16 03:59:50 +0000 |
---|---|---|
committer | bmilekic <bmilekic@FreeBSD.org> | 2003-07-16 03:59:50 +0000 |
commit | 63044950902a92bfdcfe1444af277906f259a75a (patch) | |
tree | 9a6ab8aa3223f433282ae0c02f3e68baf4d09240 /sys | |
parent | bbe3dcff890cb2356aa74762e383447525778810 (diff) | |
download | FreeBSD-src-63044950902a92bfdcfe1444af277906f259a75a.zip FreeBSD-src-63044950902a92bfdcfe1444af277906f259a75a.tar.gz |
Log process accounting activation/deactivation.
Useful for some auditing purposes.
Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
PR: kern/54529
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_acct.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c index 58bdbf4..d5a0887 100644 --- a/sys/kern/kern_acct.c +++ b/sys/kern/kern_acct.c @@ -187,6 +187,7 @@ acct(td, uap) acctp = savacctp = NULLVP; crfree(acctcred != NOCRED ? acctcred : savacctcred); acctcred = savacctcred = NOCRED; + log(LOG_NOTICE, "Process accounting disabled.\n"); } if (uap->path == NULL) { mtx_unlock(&acct_mtx); @@ -202,6 +203,7 @@ acct(td, uap) acctflags = flags; callout_init(&acctwatch_callout, 0); mtx_unlock(&acct_mtx); + log(LOG_NOTICE, "Process accounting enabled.\n"); acctwatch(NULL); done2: mtx_unlock(&Giant); |