From owner-p4-projects@FreeBSD.ORG Fri Sep 4 14:00:15 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id DEB941065693; Fri, 4 Sep 2009 14:00:14 +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 A4A5C1065670 for ; Fri, 4 Sep 2009 14:00:14 +0000 (UTC) (envelope-from marinosi@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9327A8FC08 for ; Fri, 4 Sep 2009 14:00:14 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n84E06kl070294 for ; Fri, 4 Sep 2009 14:00:06 GMT (envelope-from marinosi@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n84E06vi070292 for perforce@freebsd.org; Fri, 4 Sep 2009 14:00:06 GMT (envelope-from marinosi@FreeBSD.org) Date: Fri, 4 Sep 2009 14:00:06 GMT Message-Id: <200909041400.n84E06vi070292@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marinosi@FreeBSD.org using -f From: Ilias Marinos To: Perforce Change Reviews Cc: Subject: PERFORCE change 168155 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: Fri, 04 Sep 2009 14:00:15 -0000 http://perforce.freebsd.org/chv.cgi?CH=168155 Change 168155 by marinosi@marinosi_redrum on 2009/09/04 14:00:05 - Added audit_trigger.h header files which contains data about the trigger protocols. - Starting implementing a TLV based trigger protocol for multiple slices. Affected files ... .. //depot/projects/soc2009/marinosi_appaudit/src/sys/bsm/audit.h#7 edit .. //depot/projects/soc2009/marinosi_appaudit/src/sys/security/audit/audit_trigger.c#2 edit .. //depot/projects/soc2009/marinosi_appaudit/src/sys/security/audit/audit_trigger.h#1 add Differences ... ==== //depot/projects/soc2009/marinosi_appaudit/src/sys/bsm/audit.h#7 (text) ==== @@ -312,7 +312,9 @@ #if !defined(_KERNEL) && !defined(KERNEL) int audit(const void *, int); int auditon(int, void *, int); +int auditon_slice(int, char *, void *, int); int auditctl(const char *); +int auditctl_slice(const char *, const char *); int getauid(au_id_t *); int setauid(const au_id_t *); int getaudit(struct auditinfo *); ==== //depot/projects/soc2009/marinosi_appaudit/src/sys/security/audit/audit_trigger.c#2 (text) ==== @@ -40,25 +40,11 @@ #include #include - -/* - * Structures and operations to support the basic character special device - * used to communicate with userland. /dev/audit reliably delivers one-byte - * messages to a listening application (or discards them if there is no - * listening application). - * - * Currently, select/poll are not supported on the trigger device. - */ -struct trigger_info { - unsigned int trigger; - TAILQ_ENTRY(trigger_info) list; -}; +#include static MALLOC_DEFINE(M_AUDITTRIGGER, "audit_trigger", "Audit trigger events"); static struct cdev *audit_dev; static int audit_isopen = 0; -static TAILQ_HEAD(, trigger_info) trigger_list; -static struct mtx audit_trigger_mtx; static int audit_open(struct cdev *dev, int oflags, int devtype, struct thread *td)