History

audit: use define's for audit version

Give names to the audit versions. Just something for a userspace programmer to know what the version provides.

Eric Paris committed 12 years ago

Commit 70249a91 parent d7961142 files · +6 −1Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/audit.h+5−0
@@ -320,6 +320,11 @@ enum { · 319 unmodified lines
320320 #define AUDIT_STATUS_RATE_LIMIT 0x0008
321321 #define AUDIT_STATUS_BACKLOG_LIMIT 0x0010
322322 #define AUDIT_STATUS_BACKLOG_WAIT_TIME 0x0020
323+
324+#define AUDIT_VERSION_BACKLOG_LIMIT 1
325+#define AUDIT_VERSION_BACKLOG_WAIT_TIME 2
326+#define AUDIT_VERSION_LATEST AUDIT_VERSION_BACKLOG_WAIT_TIME
327+
323328 /* Failure-to-log actions */
324329 #define AUDIT_FAIL_SILENT 0
325330 #define AUDIT_FAIL_PRINTK 1