Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Eric Paris <eparis@redhat.com>

+6 -1
+5
include/uapi/linux/audit.h
··· 320 320 #define AUDIT_STATUS_RATE_LIMIT 0x0008 321 321 #define AUDIT_STATUS_BACKLOG_LIMIT 0x0010 322 322 #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 + 323 328 /* Failure-to-log actions */ 324 329 #define AUDIT_FAIL_SILENT 0 325 330 #define AUDIT_FAIL_PRINTK 1
+1 -1
kernel/audit.c
··· 792 792 s.backlog_limit = audit_backlog_limit; 793 793 s.lost = atomic_read(&audit_lost); 794 794 s.backlog = skb_queue_len(&audit_skb_queue); 795 - s.version = 2; 795 + s.version = AUDIT_VERSION_LATEST; 796 796 s.backlog_wait_time = audit_backlog_wait_time; 797 797 audit_send_reply(NETLINK_CB(skb).portid, seq, AUDIT_GET, 0, 0, 798 798 &s, sizeof(s));