diff options
author | Eric Paris <eparis@redhat.com> | 2014-03-24 12:13:48 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-03-24 12:13:48 -0400 |
commit | 356750e35e86485c464704c0a32c1d8dc77590d7 (patch) | |
tree | 70fd9632eb8ce934e69510abdf884f0663283c91 /include/linux | |
parent | e231d54c1239ccf31aaee311bed0c4d1937cae2c (diff) |
audit: define audit_is_compat in kernel internal header
We were exposing a function based on kernel config options to userspace.
This is wrong. Move it to the audit internal header.
Suggested-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/audit.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 4b2983e25ce0..611a59a56f1a 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h @@ -102,6 +102,12 @@ struct filename; extern void audit_log_session_info(struct audit_buffer *ab); +#ifdef CONFIG_COMPAT +#define audit_is_compat(arch) (!((arch) & __AUDIT_ARCH_64BIT)) +#else +#define audit_is_compat(arch) false +#endif + #ifdef CONFIG_AUDITSYSCALL /* These are defined in auditsc.c */ /* Public API */ |