Skip to content

Commit 312103d

Browse files
cmetcalf-tileraeparis
authored andcommitted
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>
1 parent ab9705f commit 312103d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/audit.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct filename;
102102

103103
extern void audit_log_session_info(struct audit_buffer *ab);
104104

105-
#ifdef CONFIG_COMPAT
105+
#ifdef CONFIG_AUDIT_COMPAT_GENERIC
106106
#define audit_is_compat(arch) (!((arch) & __AUDIT_ARCH_64BIT))
107107
#else
108108
#define audit_is_compat(arch) false

0 commit comments

Comments
 (0)