]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:11:20 +0000 (10:11 +0200)
commit4c963eff7d9721bca8a3bce19b7733c8b2261685
treec33be8d78f7787bbdf2d86bc6b5cefa74634d060
parent40e63fb87a3f9fdf13ee19eafdc52f013068c4a8
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