mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Log process accounting activation/deactivation.
Useful for some auditing purposes. Submitted by: Christian S.J. Peron <maneo@bsdpro.com> PR: kern/54529
This commit is contained in:
parent
e7091e1518
commit
d2dbf5bc0b
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue