PERFORCE change 103336 for review

Robert Watson rwatson at FreeBSD.org
Sun Aug 6 13:23:08 UTC 2006


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

Change 103336 by rwatson at rwatson_peppercorn on 2006/08/06 13:22:21

	Audit PowerPC system calls.

Affected files ...

.. //depot/projects/trustedbsd/audit3/sys/powerpc/powerpc/trap.c#8 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/sys/powerpc/powerpc/trap.c#8 (text+ko) ====

@@ -55,6 +55,8 @@
 #endif
 #include <sys/vmmeter.h>
 
+#include <security/audit/audit.h>
+
 #include <vm/vm.h>
 #include <vm/pmap.h>
 #include <vm/vm_extern.h>
@@ -418,7 +420,9 @@
 
 		PTRACESTOP_SC(p, td, S_PT_SCE);
 
+		AUDIT_SYSCALL_ENTER(code, td);
 		error = (*callp->sy_call)(td, params);
+		AUDIT_SYSCALL_EXIT(error, td);
 
 		CTR3(KTR_SYSC, "syscall: p=%s %s ret=%x", p->p_comm,
 		     syscallnames[code], td->td_retval[0]);


More information about the trustedbsd-cvs mailing list