History

Merge branch 'upstream' of git://git.infradead.org/users/pcmoore/audit

Pull audit updates from Paul Moore: "Two small patches from the audit next branch; only one of which has any real significant code changes, the other is simply a MAINTAINERS update for audit. The single code patch is pretty small and rather straightforward, it changes the audit "version" number reported to userspace from an integer to a bitmap which is used to indicate the functionality of the running kernel. This really doesn't have much impact on the kernel, but it will make life easier for the audit userspace folks. Thankfully we were still on a version number which allowed us to do this without breaking userspace" * 'upstream' of git://git.infradead.org/users/pcmoore/audit: audit: convert status version to a feature bitmap audit: add Paul Moore to the MAINTAINERS entry

Linus Torvalds committed 11 years ago

Commit a99abce2 parents e3aa91a 0f7e94e3 files · +17 −7Browse files

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

Unified · Split

include/uapi/linux/audit.h+13−4
@@ -322,9 +322,15 @@ enum { · 321 unmodified lines
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
@@ -404,7 +410,10 @@ struct audit_status { · 73 unmodified lines
404410 __u32 backlog_limit; /* waiting messages limit */
405411 __u32 lost; /* messages lost */
406412 __u32 backlog; /* messages waiting in queue */
407− __u32 version; /* audit api version number */
413+ union {
414+ __u32 version; /* deprecated: audit api version num */
415+ __u32 feature_bitmap; /* bitmap of kernel audit features */
416+ };
408417 __u32 backlog_wait_time;/* message queue wait timeout */
409418 };
410419