OSDN Git Service

audit: log 32-bit socketcalls
authorRichard Guy Briggs <rgb@redhat.com>
Tue, 17 Jan 2017 16:07:15 +0000 (11:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Oct 2017 08:14:18 +0000 (10:14 +0200)
commit093fe104c5bbd99b4934bd80216b6e6d7371c4fc
treed8755608cfc7d0fe3881997742c3d5b7a21df722
parentaf3749456042cc38c80902e849421451b27215f6
audit: log 32-bit socketcalls

[ Upstream commit 62bc306e2083436675e33b5bdeb6a77907d35971 ]

32-bit socketcalls were not being logged by audit on x86_64 systems.
Log them.  This is basically a duplicate of the call from
net/socket.c:sys_socketcall(), but it addresses the impedance mismatch
between 32-bit userspace process and 64-bit kernel audit.

See: https://github.com/linux-audit/audit-kernel/issues/14

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/audit.h
net/compat.c