audit: add OPENAT2 record to list "how" info
[linux-block.git] / kernel / audit.h
index d6a2c899a8dbfd38d70d9a96fcfdeaf79f14ba86..3b64a97f609155366c4fd3e5e800c00c0d26c7de 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/skbuff.h>
 #include <uapi/linux/mqueue.h>
 #include <linux/tty.h>
+#include <uapi/linux/openat2.h> // struct open_how
 
 /* AUDIT_NAMES is the number of slots we reserve in the audit_context
  * for saving names from getname().  If we get more names we will allocate
@@ -188,6 +189,7 @@ struct audit_context {
                        int                     fd;
                        int                     flags;
                } mmap;
+               struct open_how openat2;
                struct {
                        int                     argc;
                } execve;