From owner-p4-projects Mon May 6 15:17:57 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4626237B405; Mon, 6 May 2002 15:17:50 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 814A537B403 for ; Mon, 6 May 2002 15:17:49 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g46MHnh33611 for perforce@freebsd.org; Mon, 6 May 2002 15:17:49 -0700 (PDT) (envelope-from arr@freebsd.org) Date: Mon, 6 May 2002 15:17:49 -0700 (PDT) Message-Id: <200205062217.g46MHnh33611@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to arr@freebsd.org using -f From: "Andrew R. Reiter" Subject: PERFORCE change 10910 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=10910 Change 10910 by arr@arr_shibby on 2002/05/06 15:17:43 - Create a fairly lame _audit_print_record(). This will be wrapped with AUDIT_DEBUG (yeesh) shortly. Affected files ... ... //depot/projects/trustedbsd/audit/sys/kern/kern_audit.c#34 edit Differences ... ==== //depot/projects/trustedbsd/audit/sys/kern/kern_audit.c#34 (text+ko) ==== @@ -125,7 +125,22 @@ }; SYSUNINIT(tbsd_audit, SI_SUB_MAC, SI_ORDER_ANY, &audit_shutdown, NULL); +static __inline void +_audit_print_record(audit_record_t *ar) +{ + audit_header_t *ah; + audit_subject_t *as; + audit_object_t *ao; + + ah = &ar->ar_hdr; + as = &ar->ar_subj; + ao = &ar->ar_obj; + + printf("AUDIT RECORD! TYPE: %d\n", ah->ah_type); +} + +void audit_write_thread(void) { audit_record_t *ar; @@ -139,8 +154,10 @@ ar = TAILQ_FIRST(&record_queue); TAILQ_REMOVE(&record_queue, ar, ar_next); } - if (ar != NULL) + if (ar != NULL) { + _audit_print_record(ar); uma_zfree(record_zone, ar); + } msleep(&record_queue, &audit_q_mtx, PWAIT, "record queue", 0); } } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message