]> git.baikalelectronics.ru Git - kernel.git/commit
ARM/audit: include audit header and fix audit arch
authorEric Paris <eparis@redhat.com>
Tue, 21 Feb 2012 16:26:55 +0000 (11:26 -0500)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 21 Feb 2012 16:50:14 +0000 (16:50 +0000)
commit170258467866639056640d6b4c6f67230b0c5f61
tree8ce5c857bdca8abfefcaadc05843e3c0dbea87ec
parent83014f9d14717ec92ade9d1b51dac2ee68bc685a
ARM/audit: include audit header and fix audit arch

Both bugs being fixed were introduced in:
1166f764f9125535bc05964e566c790967a60130

Include linux/audit.h to fix below build errors:

  CC      arch/arm/kernel/ptrace.o
arch/arm/kernel/ptrace.c: In function 'syscall_trace':
arch/arm/kernel/ptrace.c:919: error: implicit declaration of function 'audit_syscall_exit'
arch/arm/kernel/ptrace.c:921: error: implicit declaration of function 'audit_syscall_entry'
arch/arm/kernel/ptrace.c:921: error: 'AUDIT_ARCH_ARMEB' undeclared (first use in this function)
arch/arm/kernel/ptrace.c:921: error: (Each undeclared identifier is reported only once
arch/arm/kernel/ptrace.c:921: error: for each function it appears in.)
make[1]: *** [arch/arm/kernel/ptrace.o] Error 1
make: *** [arch/arm/kernel] Error 2

This part of the patch is:
Reported-by: Axel Lin <axel.lin@gmail.com>
Reported-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
(They both provided patches to fix it)

This patch also (at the request of the list) fixes the fact that
ARM has both LE and BE versions however the audit code was called as if
it was always BE.  If audit userspace were to try to interpret the bits
it got from a LE system it would obviously do so incorrectly.  Fix this
by using the right arch flag on the right system.

This part of the patch is:
Reported-by: Russell King - ARM Linux <linux@arm.linux.org.uk>
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/ptrace.c