Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 May 2002 15:17:49 -0700 (PDT)
From:      "Andrew R. Reiter" <arr@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 10910 for review
Message-ID:  <200205062217.g46MHnh33611@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205062217.g46MHnh33611>