From owner-p4-projects@FreeBSD.ORG Sun Feb 5 21:38:34 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 49C4C16A423; Sun, 5 Feb 2006 21:38:34 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C73A16A420 for ; Sun, 5 Feb 2006 21:38:34 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9D4A43D45 for ; Sun, 5 Feb 2006 21:38:33 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k15LcXDB077012 for ; Sun, 5 Feb 2006 21:38:33 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k15LcX4a077009 for perforce@freebsd.org; Sun, 5 Feb 2006 21:38:33 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sun, 5 Feb 2006 21:38:33 GMT Message-Id: <200602052138.k15LcX4a077009@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 91187 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Feb 2006 21:38:35 -0000 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