summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2014-03-24 17:13:48 +0100
committerEric Paris <eparis@redhat.com>2014-03-24 17:13:48 +0100
commit356750e35e86485c464704c0a32c1d8dc77590d7 (patch)
tree70fd9632eb8ce934e69510abdf884f0663283c91 /include/uapi
parentkernel: Use RCU_INIT_POINTER(x, NULL) in audit.c (diff)
downloadlinux-356750e35e86485c464704c0a32c1d8dc77590d7.tar.xz
linux-356750e35e86485c464704c0a32c1d8dc77590d7.zip
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/uapi')
-rw-r--r--include/uapi/linux/audit.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h
index 9af01d77dc44..4315ee99b967 100644
--- a/include/uapi/linux/audit.h
+++ b/include/uapi/linux/audit.h
@@ -362,12 +362,6 @@ enum {
#define AUDIT_ARCH_SPARC64 (EM_SPARCV9|__AUDIT_ARCH_64BIT)
#define AUDIT_ARCH_X86_64 (EM_X86_64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)
-#ifdef CONFIG_COMPAT
-#define audit_is_compat(arch) (!((arch) & __AUDIT_ARCH_64BIT))
-#else
-#define audit_is_compat(arch) false
-#endif
-
#define AUDIT_PERM_EXEC 1
#define AUDIT_PERM_WRITE 2
#define AUDIT_PERM_READ 4