PERFORCE change 58196 for review

Wayne Salamon wsalamon at FreeBSD.org
Sun Jul 25 19:11:44 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=58196

Change 58196 by wsalamon at wsalamon_epi on 2004/07/26 02:10:54

	Hook auditing into the kernel initialization.	

Affected files ...

.. //depot/projects/trustedbsd/audit3/sys/security/audit/kern_audit.c#5 edit
.. //depot/projects/trustedbsd/audit3/sys/sys/kernel.h#2 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/sys/security/audit/kern_audit.c#5 (text+ko) ====

@@ -617,6 +617,8 @@
 		panic("audit_init: kthread_create returned %d", error);
 }
 
+SYSINIT(audit_init, SI_SUB_AUDIT, SI_ORDER_FIRST, audit_init, NULL)
+
 static void
 audit_rotate_vnode(struct ucred *cred, struct vnode *vp)
 {

==== //depot/projects/trustedbsd/audit3/sys/sys/kernel.h#2 (text+ko) ====

@@ -127,6 +127,7 @@
 	SI_SUB_VM_CONF		= 0x2300000,	/* config VM, set limits*/
 	SI_SUB_RUN_QUEUE	= 0x2400000,	/* set up run queue*/
 	SI_SUB_KTRACE		= 0x2480000,	/* ktrace */
+	SI_SUB_AUDIT		= 0x24C0000,	/* audit */
 	SI_SUB_CREATE_INIT	= 0x2500000,	/* create init process*/
 	SI_SUB_SCHED_IDLE	= 0x2600000,	/* required idle procs */
 	SI_SUB_MBUF		= 0x2700000,	/* mbuf subsystem */


More information about the p4-projects mailing list