]> git.baikalelectronics.ru Git - kernel.git/commit
audit: move audit_return_fixup before the filters
authorRichard Guy Briggs <rgb@redhat.com>
Thu, 25 Aug 2022 19:32:40 +0000 (15:32 -0400)
committerPaul Moore <paul@paul-moore.com>
Thu, 25 Aug 2022 21:25:08 +0000 (17:25 -0400)
commitd00f1830d8bf8659a706119bfa11fdcdda76d53f
treedb29bf24607042a9848cf9718f02d156fd2c7e3e
parentd89251052ab7eac8fd5f78f4fe6b92ea014cf638
audit: move audit_return_fixup before the filters

The success and return_code are needed by the filters.  Move
audit_return_fixup() before the filters.  This was causing syscall
auditing events to be missed.

Link: https://github.com/linux-audit/audit-kernel/issues/138
Cc: stable@vger.kernel.org
Fixes: 77ff6dbcfd7e ("audit: prepare audit_context for use in calling contexts beyond syscalls")
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
[PM: manual merge required]
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/auditsc.c