From owner-p4-projects@FreeBSD.ORG Sun May 11 18:13:10 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 526D41065678; Sun, 11 May 2008 18:13:10 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 144B31065675 for ; Sun, 11 May 2008 18:13:10 +0000 (UTC) (envelope-from diego@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 04F598FC1B for ; Sun, 11 May 2008 18:13:10 +0000 (UTC) (envelope-from diego@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m4BID9J3002896 for ; Sun, 11 May 2008 18:13:09 GMT (envelope-from diego@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m4BID9Pm002890 for perforce@freebsd.org; Sun, 11 May 2008 18:13:09 GMT (envelope-from diego@FreeBSD.org) Date: Sun, 11 May 2008 18:13:09 GMT Message-Id: <200805111813.m4BID9Pm002890@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to diego@FreeBSD.org using -f From: Diego Giagio To: Perforce Change Reviews Cc: Subject: PERFORCE change 141473 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, 11 May 2008 18:13:10 -0000 http://perforce.freebsd.org/chv.cgi?CH=141473 Change 141473 by diego@diego_black on 2008/05/11 18:12:58 Fix comments. Affected files ... .. //depot/projects/soc2008/diego-audit/src/sys/security/audit/audit.c#3 edit Differences ... ==== //depot/projects/soc2008/diego-audit/src/sys/security/audit/audit.c#3 (text) ==== @@ -322,6 +322,9 @@ return (ar); } +/* + * Allocate a new record if preselection allows it. Otherwise, return NULL. + */ struct kaudit_record * audit_begin(int event, struct thread *td) { @@ -343,8 +346,7 @@ aumask = &td->td_ucred->cr_audit.ai_mask; /* - * Allocate an audit record, if preselection allows it, and store in - * the thread for later use. + * Allocate an audit record, if preselection allows it. */ class = au_event_class(event); if (au_preselect(event, class, aumask, AU_PRS_BOTH)) {