PERFORCE change 91187 for review
Robert Watson
rwatson at FreeBSD.org
Sun Feb 5 13:38:35 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=91187
Change 91187 by rwatson at rwatson_peppercorn on 2006/02/05 21:38:24
When exiting a thread, submit any pending record. Today, we don't
audit thread exit, but should that happen, this will prevent
unhappiness, as the thread exit system call will never return, and
hence not commit the record.
Pointed out by/with: cognet
Affected files ...
.. //depot/projects/trustedbsd/audit3/sys/kern/kern_thread.c#7 edit
Differences ...
==== //depot/projects/trustedbsd/audit3/sys/kern/kern_thread.c#7 (text+ko) ====
@@ -471,6 +471,10 @@
(long)p->p_pid, p->p_comm);
KASSERT(TAILQ_EMPTY(&td->td_sigqueue.sq_list), ("signal pending"));
+#ifdef AUDIT
+ AUDIT_SYSCALL_EXIT(0, td);
+#endif
+
if (td->td_standin != NULL) {
/*
* Note that we don't need to free the cred here as it
More information about the p4-projects
mailing list