diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2014-03-25 09:25:41 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-04-10 17:51:29 -0400 |
commit | 312103d64d0fcadb332899a2c84b357ddb18f4e3 (patch) | |
tree | c000c66645e669e13f96b305ef08748e81e90fb4 /include/linux | |
parent | ab9705f34ce92b4f0da494859e69688e1e34e387 (diff) |
AUDIT: make audit_is_compat depend on CONFIG_AUDIT_COMPAT_GENERIC
On systems with CONFIG_COMPAT we introduced the new requirement that
audit_classify_compat_syscall() exists. This wasn't true for everything
(apparently not for "tilegx", which I know less that nothing about.)
Instead of wrapping the preprocessor optomization with CONFIG_COMPAT we
should have used the new CONFIG_AUDIT_COMPAT_GENERIC. This patch uses
that config option to make sure only arches which intend to implement
this have the requirement.
This works fine for tilegx according to Chris Metcalf
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/audit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 611a59a56f1a..22cfddb75566 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -102,7 +102,7 @@ struct filename; | |||
102 | 102 | ||
103 | extern void audit_log_session_info(struct audit_buffer *ab); | 103 | extern void audit_log_session_info(struct audit_buffer *ab); |
104 | 104 | ||
105 | #ifdef CONFIG_COMPAT | 105 | #ifdef CONFIG_AUDIT_COMPAT_GENERIC |
106 | #define audit_is_compat(arch) (!((arch) & __AUDIT_ARCH_64BIT)) | 106 | #define audit_is_compat(arch) (!((arch) & __AUDIT_ARCH_64BIT)) |
107 | #else | 107 | #else |
108 | #define audit_is_compat(arch) false | 108 | #define audit_is_compat(arch) false |