OSDN Git Service

audit: session ID should not set arch quick field pointer
authorRichard Guy Briggs <rgb@redhat.com>
Mon, 12 Feb 2018 10:04:53 +0000 (05:04 -0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 14 Feb 2018 21:34:22 +0000 (16:34 -0500)
commit6387440e15db1c9ee58028433cd87291cae488e7
tree01012aebe64a9e2c41208ca6de7f7226089a4b44
parentd590dca62bb8a315a2356159444de07278a3ad83
audit: session ID should not set arch quick field pointer

A bug was introduced in 8fae47705685fcaa75a1fe4c8c3e18300a702979
("audit: add support for session ID user filter")
See: https://github.com/linux-audit/audit-kernel/issues/4

When setting a session ID filter, the session ID filter field overwrote
the quick pointer reference to the arch field, potentially causing the
arch field to be misinterpreted.

Passes audit-testsuite.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/auditfilter.c