From d2dbf5bc0b3216a5cd6f79796f44245118c0fd20 Mon Sep 17 00:00:00 2001 From: Bosko Milekic Date: Wed, 16 Jul 2003 03:59:50 +0000 Subject: [PATCH] Log process accounting activation/deactivation. Useful for some auditing purposes. Submitted by: Christian S.J. Peron PR: kern/54529 --- sys/kern/kern_acct.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c index 58bdbf46213..d5a08870e71 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);