Date: Sun, 5 Feb 2006 21:38:33 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 91187 for review Message-ID: <200602052138.k15LcX4a077009@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=91187 Change 91187 by rwatson@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602052138.k15LcX4a077009>