PERFORCE change 104245 for review
Robert Watson
rwatson at FreeBSD.org
Wed Aug 16 15:01:11 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=104245
Change 104245 by rwatson at rwatson_zoo on 2006/08/16 15:01:03
Merge OpenBSM 1.0a8 changes into the audit3 kernel.
Affected files ...
.. //depot/projects/trustedbsd/audit3/sys/bsm/audit.h#31 integrate
Differences ...
==== //depot/projects/trustedbsd/audit3/sys/bsm/audit.h#31 (text+ko) ====
@@ -30,7 +30,7 @@
*
* @APPLE_BSD_LICENSE_HEADER_END@
*
- * $P4: //depot/projects/trustedbsd/audit3/sys/bsm/audit.h#30 $
+ * $P4: //depot/projects/trustedbsd/audit3/sys/bsm/audit.h#31 $
* $FreeBSD: src/sys/bsm/audit.h,v 1.4 2006/06/05 12:55:45 rwatson Exp $
*/
@@ -43,7 +43,8 @@
#define AUDIT_RECORD_MAGIC 0x828a0f1b
#define MAX_AUDIT_RECORDS 20
-#define MAX_AUDIT_RECORD_SIZE 4096
+#define MAXAUDITDATA (0x8000 - 1)
+#define MAX_AUDIT_RECORD_SIZE MAXAUDITDATA
#define MIN_AUDIT_FILE_SIZE (512 * 1024)
/*
@@ -55,7 +56,7 @@
#define AUDIT_HARD_LIMIT_FREE_BLOCKS 4
/*
- * Triggers for the audit daemon
+ * Triggers for the audit daemon.
*/
#define AUDIT_TRIGGER_MIN 1
#define AUDIT_TRIGGER_LOW_SPACE 1
@@ -66,7 +67,8 @@
#define AUDIT_TRIGGER_MAX 5
/*
- * File that will be read for trigger events from the kernel.
+ * Special file that will be read for trigger events from the kernel
+ * (FreeBSD).
*/
#define AUDIT_TRIGGER_FILE "/dev/audit"
@@ -119,7 +121,7 @@
#define AU_ALL 0xffffffff
/*
- * IPC types
+ * IPC types.
*/
#define AT_IPC_MSG ((u_char)1) /* Message IPC id. */
#define AT_IPC_SEM ((u_char)2) /* Semaphore IPC id. */
@@ -164,19 +166,6 @@
/*
* Audit policy controls.
*/
-#ifdef OLD_WORLD_ORDER
-#define AUDIT_CNT 0x0001
-#define AUDIT_AHLT 0x0002
-#define AUDIT_ARGV 0x0004
-#define AUDIT_ARGE 0x0008
-#define AUDIT_PASSWD 0x0010
-#define AUDIT_SEQ 0x0020
-#define AUDIT_WINDATA 0x0040
-#define AUDIT_USER 0x0080
-#define AUDIT_GROUP 0x0100
-#define AUDIT_TRAIL 0x0200
-#define AUDIT_PATH 0x0400
-#else /* !OLD_WORLD_ORDER */
#define AUDIT_CNT 0x0001
#define AUDIT_AHLT 0x0002
#define AUDIT_ARGV 0x0004
@@ -191,10 +180,9 @@
#define AUDIT_PUBLIC 0x0800
#define AUDIT_ZONENAME 0x1000
#define AUDIT_PERZONE 0x2000
-#endif /* !OLD_WORLD_ORDER */
/*
- * Audit queue control parameters
+ * Audit queue control parameters.
*/
#define AQ_HIWATER 100
#define AQ_MAXHIGH 10000
More information about the trustedbsd-cvs
mailing list