arch/x86: add syscall_get_arch to syscall.h
authorWill Drewry <wad@chromium.org>
Thu, 12 Apr 2012 21:47:56 +0000 (16:47 -0500)
committerJames Morris <james.l.morris@oracle.com>
Sat, 14 Apr 2012 01:13:20 +0000 (11:13 +1000)
commitb7456536cf9466b402b540c5588d79a4177c723a
tree3d955990f59de9c5ae316772dda7d8acb655093a
parent07bd18d00d5dcf84eb22f8120f47f09c3d8fe27d
arch/x86: add syscall_get_arch to syscall.h

Add syscall_get_arch() to export the current AUDIT_ARCH_* based on system call
entry path.

Signed-off-by: Will Drewry <wad@chromium.org>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Reviewed-by: H. Peter Anvin <hpa@zytor.com>
Acked-by: Eric Paris <eparis@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
v18: - update comment about x32 tasks
     - rebase to v3.4-rc2
v17: rebase and reviewed-by
v14: rebase/nochanges
v13: rebase on to 88ebdda6159ffc15699f204c33feb3e431bf9bdc
Signed-off-by: James Morris <james.l.morris@oracle.com>
arch/x86/include/asm/syscall.h