]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Merge tag 'audit-pr-20260410' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoor...
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Apr 2026 21:56:54 +0000 (14:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Apr 2026 21:56:54 +0000 (14:56 -0700)
Pull audit updates from Paul Moore:

 - Improved handling of unknown status requests from userspace

   The current kernel code ignores unknown/unused request bits sent from
   userspace and returns an error code based on the results of the
   request(s) it does understand. The patch from Ricardo fixes this so
   that unknown requests return an -EINVAL to userspace, making
   compatibility a bit easier moving forward.

 - A number of small style and formatting cleanups

* tag 'audit-pr-20260410' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit:
  audit: handle unknown status requests in audit_receive_msg()
  audit: fix coding style issues
  audit: remove redundant initialization of static variables to 0
  audit: fix whitespace alignment in include/uapi/linux/audit.h

1  2 
include/linux/audit.h

index b915aaa7ed7399a6e453b1bb9bacbda686028638,d79218bf075a04398ee72b27debfe1bf22affe7d..803b0183d98dd2c459b64c31c457d9fda7e75f96
  #include <uapi/linux/audit.h>
  #include <uapi/linux/fanotify.h>
  
 -#define AUDIT_INO_UNSET ((unsigned long)-1)
+ #define AUDIT_STATUS_ALL (AUDIT_STATUS_ENABLED | \
+                         AUDIT_STATUS_FAILURE | \
+                         AUDIT_STATUS_PID | \
+                         AUDIT_STATUS_RATE_LIMIT | \
+                         AUDIT_STATUS_BACKLOG_LIMIT | \
+                         AUDIT_STATUS_BACKLOG_WAIT_TIME | \
+                         AUDIT_STATUS_LOST | \
+                         AUDIT_STATUS_BACKLOG_WAIT_TIME_ACTUAL)
 +#define AUDIT_INO_UNSET ((u64)-1)
  #define AUDIT_DEV_UNSET ((dev_t)-1)
  
  struct audit_sig_info {