diff options
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/audit.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h index 4315ee99b967..9af01d77dc44 100644 --- a/include/uapi/linux/audit.h +++ b/include/uapi/linux/audit.h | |||
@@ -362,6 +362,12 @@ enum { | |||
362 | #define AUDIT_ARCH_SPARC64 (EM_SPARCV9|__AUDIT_ARCH_64BIT) | 362 | #define AUDIT_ARCH_SPARC64 (EM_SPARCV9|__AUDIT_ARCH_64BIT) |
363 | #define AUDIT_ARCH_X86_64 (EM_X86_64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) | 363 | #define AUDIT_ARCH_X86_64 (EM_X86_64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) |
364 | 364 | ||
365 | #ifdef CONFIG_COMPAT | ||
366 | #define audit_is_compat(arch) (!((arch) & __AUDIT_ARCH_64BIT)) | ||
367 | #else | ||
368 | #define audit_is_compat(arch) false | ||
369 | #endif | ||
370 | |||
365 | #define AUDIT_PERM_EXEC 1 | 371 | #define AUDIT_PERM_EXEC 1 |
366 | #define AUDIT_PERM_WRITE 2 | 372 | #define AUDIT_PERM_WRITE 2 |
367 | #define AUDIT_PERM_READ 4 | 373 | #define AUDIT_PERM_READ 4 |