ARCH: AUDIT: audit_syscall_entry() should not require the arch
authorEric Paris <eparis@redhat.com>
Tue, 11 Mar 2014 17:29:28 +0000 (13:29 -0400)
committerEric Paris <eparis@redhat.com>
Tue, 23 Sep 2014 20:21:26 +0000 (16:21 -0400)
commit91397401bb5072f71e8ce8744ad0bdec3e875a91
treea302a36a358ec001812ac495606fa6ced52a672e
parentce5d112827e5c2e9864323d0efd7ec2a62c6dce0
ARCH: AUDIT: audit_syscall_entry() should not require the arch

We have a function where the arch can be queried, syscall_get_arch().
So rather than have every single piece of arch specific code use and/or
duplicate syscall_get_arch(), just have the audit code use the
syscall_get_arch() code.

Based-on-patch-by: Richard Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Cc: linux-alpha@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-ia64@vger.kernel.org
Cc: microblaze-uclinux@itee.uq.edu.au
Cc: linux-mips@linux-mips.org
Cc: linux@lists.openrisc.net
Cc: linux-parisc@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-s390@vger.kernel.org
Cc: linux-sh@vger.kernel.org
Cc: sparclinux@vger.kernel.org
Cc: user-mode-linux-devel@lists.sourceforge.net
Cc: linux-xtensa@linux-xtensa.org
Cc: x86@kernel.org
17 files changed:
arch/alpha/kernel/ptrace.c
arch/arm/kernel/ptrace.c
arch/ia64/kernel/ptrace.c
arch/microblaze/kernel/ptrace.c
arch/mips/kernel/ptrace.c
arch/openrisc/kernel/ptrace.c
arch/parisc/kernel/ptrace.c
arch/powerpc/kernel/ptrace.c
arch/s390/kernel/ptrace.c
arch/sh/kernel/ptrace_32.c
arch/sh/kernel/ptrace_64.c
arch/sparc/kernel/ptrace_64.c
arch/um/kernel/ptrace.c
arch/x86/kernel/ptrace.c
arch/x86/um/asm/ptrace.h
arch/xtensa/kernel/ptrace.c
include/linux/audit.h