From owner-p4-projects@FreeBSD.ORG Sun Jan 11 10:49:17 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3572D16A4D1; Sun, 11 Jan 2004 10:49:17 -0800 (PST) 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 099E516A4CE for ; Sun, 11 Jan 2004 10:49:17 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99E0B43D49 for ; Sun, 11 Jan 2004 10:49:15 -0800 (PST) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i0BInF0B059991 for ; Sun, 11 Jan 2004 10:49:15 -0800 (PST) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0BInEhl059986 for perforce@freebsd.org; Sun, 11 Jan 2004 10:49:14 -0800 (PST) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sun, 11 Jan 2004 10:49:14 -0800 (PST) Message-Id: <200401111849.i0BInEhl059986@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 Subject: PERFORCE change 45150 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2004 18:49:17 -0000 http://perforce.freebsd.org/chv.cgi?CH=45150 Change 45150 by rwatson@rwatson_paprika on 2004/01/11 10:46:39 Each active thread carries around its in-progress audit record in its thread structure. Equivilent to uthread->uu_ar in Darwin. Affected files ... .. //depot/projects/trustedbsd/audit2/sys/sys/proc.h#2 edit Differences ... ==== //depot/projects/trustedbsd/audit2/sys/sys/proc.h#2 (text+ko) ==== @@ -253,6 +253,7 @@ * with N runnable and queued KSEs in the KSEGRP, the first N threads * are linked to them. Other threads are not yet assigned. */ +struct kaudit_record; struct thread { struct proc *td_proc; /* (*) Associated process. */ struct ksegrp *td_ksegrp; /* (*) Associated KSEG. */ @@ -302,6 +303,7 @@ sigset_t *td_waitset; /* (c) Wait set for sigwait. */ TAILQ_ENTRY(thread) td_umtx; /* (c?) Link for when we're blocked. */ volatile u_int td_generation; /* (k) Enable detection of preemption */ + struct kaudit_record *td_ar; /* (k) Active audit record, if any. */ #define td_endzero td_base_pri