kern/54529: [patch] process accounting activation/deactivation is not logged

Christian S.J. Peron maneo at bsdpro.com
Tue Jul 15 20:40:08 PDT 2003


>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 at 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:


More information about the freebsd-bugs mailing list