PERFORCE change 96592 for review
Robert Watson
rwatson at FreeBSD.org
Wed May 3 15:08:35 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=96592
Change 96592 by rwatson at 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.
More information about the trustedbsd-cvs
mailing list