Skip to content

Commit 0f7e94e

Browse files
committed
Merge branch 'next' into upstream for v3.19
2 parents 799b601 + 0288d71 commit 0f7e94e

3 files changed

Lines changed: 17 additions & 7 deletions

File tree

‎MAINTAINERS‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,10 +1689,11 @@ S: Supported
16891689
F: drivers/scsi/esas2r
16901690

16911691
AUDIT SUBSYSTEM
1692+
M: Paul Moore <paul@paul-moore.com>
16921693
M: Eric Paris <eparis@redhat.com>
1693-
L: linux-audit@redhat.com (subscribers-only)
1694+
L: linux-audit@redhat.com (moderated for non-subscribers)
16941695
W: http://people.redhat.com/sgrubb/audit/
1695-
T: git git://git.infradead.org/users/eparis/audit.git
1696+
T: git git://git.infradead.org/users/pcmoore/audit
16961697
S: Maintained
16971698
F: include/linux/audit.h
16981699
F: include/uapi/linux/audit.h

‎include/uapi/linux/audit.h‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,15 @@ enum {
322322
#define AUDIT_STATUS_BACKLOG_LIMIT 0x0010
323323
#define AUDIT_STATUS_BACKLOG_WAIT_TIME 0x0020
324324

325-
#define AUDIT_VERSION_BACKLOG_LIMIT 1
326-
#define AUDIT_VERSION_BACKLOG_WAIT_TIME 2
327-
#define AUDIT_VERSION_LATEST AUDIT_VERSION_BACKLOG_WAIT_TIME
325+
#define AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT 0x00000001
326+
#define AUDIT_FEATURE_BITMAP_BACKLOG_WAIT_TIME 0x00000002
327+
#define AUDIT_FEATURE_BITMAP_ALL (AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT | \
328+
AUDIT_FEATURE_BITMAP_BACKLOG_WAIT_TIME)
329+
330+
/* deprecated: AUDIT_VERSION_* */
331+
#define AUDIT_VERSION_LATEST AUDIT_FEATURE_BITMAP_ALL
332+
#define AUDIT_VERSION_BACKLOG_LIMIT AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT
333+
#define AUDIT_VERSION_BACKLOG_WAIT_TIME AUDIT_FEATURE_BITMAP_BACKLOG_WAIT_TIME
328334

329335
/* Failure-to-log actions */
330336
#define AUDIT_FAIL_SILENT 0
@@ -403,7 +409,10 @@ struct audit_status {
403409
__u32 backlog_limit; /* waiting messages limit */
404410
__u32 lost; /* messages lost */
405411
__u32 backlog; /* messages waiting in queue */
406-
__u32 version; /* audit api version number */
412+
union {
413+
__u32 version; /* deprecated: audit api version num */
414+
__u32 feature_bitmap; /* bitmap of kernel audit features */
415+
};
407416
__u32 backlog_wait_time;/* message queue wait timeout */
408417
};
409418

‎kernel/audit.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
842842
s.backlog_limit = audit_backlog_limit;
843843
s.lost = atomic_read(&audit_lost);
844844
s.backlog = skb_queue_len(&audit_skb_queue);
845-
s.version = AUDIT_VERSION_LATEST;
845+
s.feature_bitmap = AUDIT_FEATURE_BITMAP_ALL;
846846
s.backlog_wait_time = audit_backlog_wait_time;
847847
audit_send_reply(skb, seq, AUDIT_GET, 0, 0, &s, sizeof(s));
848848
break;

0 commit comments

Comments
 (0)