Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 May 2006 15:08:22 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 96592 for review
Message-ID:  <200605031508.k43F8M0c037288@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96592

Change 96592 by rwatson@rwatson_zoo on 2006/05/03 15:07:21

	Define ioctls for getting and setting per-pipe preselection
	properties.

Affected files ...

.. //depot/projects/trustedbsd/audit3/sys/security/audit/audit_ioctl.h#5 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/sys/security/audit/audit_ioctl.h#5 (text+ko) ====

@@ -34,6 +34,16 @@
 #define	AUDITPIPE_IOBASE	'A'
 
 /*
+ * Data structures used for complex ioctl arguments.  Do not change existing
+ * structures, add new revised ones to be used by new ioctls, and keep the
+ * old structures and ioctls for backwards compatibility.
+ */
+struct auditpipe_preselect {
+	au_id_t		ap_auid;
+	au_mask_t	ap_mask;
+};
+
+/*
  * Ioctls to read and control the behavior of individual audit pipe devices.
  */
 #define	AUDITPIPE_GET_QLEN		_IOR(AUDITPIPE_IOBASE, 1, u_int)
@@ -41,6 +51,15 @@
 #define	AUDITPIPE_SET_QLIMIT		_IOW(AUDITPIPE_IOBASE, 3, u_int)
 #define	AUDITPIPE_GET_QLIMIT_MIN	_IOR(AUDITPIPE_IOBASE, 4, u_int)
 #define	AUDITPIPE_GET_QLIMIT_MAX	_IOR(AUDITPIPE_IOBASE, 5, u_int)
+#define	AUDITPIPE_GET_FLAGS		_IOR(AUDITPIPE_IOBASE, 6, au_mask_t)
+#define	AUDITPIPE_SET_FLAGS		_IOW(AUDITPIPE_IOBASE, 7, au_mask_t)
+#define	AUDITPIPE_GET_NAFLAGS		_IOR(AUDITPIPE_IOBASE, 8, au_mask_t)
+#define	AUDITPIPE_SET_NAFLAGS		_IOW(AUDITPIPE_IOBASE, 9, au_mask_t)
+#define	AUDITPIPE_GET_PRESELECT		_IOR(AUDITPIPE_IOBASE, 10,	\
+					    struct auditpipe_preselect)
+#define	AUDITPIPE_SET_PRESELECT		_IOW(AUDITPIPE_IOBASE, 11,	\
+					    struct auditpipe_preselect)
+#define	AUDITPIPE_FLUSH_PRESELECT	_IO(AUDITPIPE_IOBASE, 11)
 
 /*
  * Ioctls to retrieve audit pipe statistics.



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