Date: Tue, 15 Jul 2003 22:34:25 -0500 (CDT) From: "Christian S.J. Peron" <maneo@bsdpro.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/54529: [patch] process accounting activation/deactivation is not logged Message-ID: <200307160334.h6G3YP0g001630@h24-79-64-13.wp.shawcable.net> Resent-Message-ID: <200307160340.h6G3e76x039680@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 54529
>Category: kern
>Synopsis: [patch] process accounting activation/deactivation is not logged
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 15 20:40:06 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Christian S.J. Peron
>Release: FreeBSD 5.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD movl 5.1-RELEASE FreeBSD 5.1-RELEASE #7: Tue Jul 15 21:56:01 CDT 2003 maneo@movl:/usr/src/sys/i386/compile/RAID0 i386
>Description:
Currently process accounting activation/deactivation is not
being logged. For auditing purposes it would be usefull if
these events were logged.
>How-To-Repeat:
N/A
>Fix:
--- /usr/src/sys/kern/kern_acct.c Tue Jul 15 22:14:36 2003
+++ /usr/src/sys/kern/kern_acct.c.2 Tue Jul 15 22:14:22 2003
@@ -185,6 +185,7 @@
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);
@@ -200,6 +201,7 @@
acctflags = flags;
callout_init(&acctwatch_callout, 0);
mtx_unlock(&acct_mtx);
+ log(LOG_NOTICE, "Process accounting enabled.\n");
acctwatch(NULL);
done2:
mtx_unlock(&Giant);
>Release-Note:
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307160334.h6G3YP0g001630>
