]> git.baikalelectronics.ru Git - kernel.git/commit
audit: Fix wrong task in comparison of session ID
authorOndrej Mosnáček <omosnace@redhat.com>
Thu, 17 May 2018 15:31:14 +0000 (17:31 +0200)
committerPaul Moore <paul@paul-moore.com>
Mon, 21 May 2018 18:27:43 +0000 (14:27 -0400)
commit2396528bfe6d144b5fde159788e10c714b84df49
tree733d0e03c619487b466fdd26319c66f56dd72f90
parent8fc51f8dd8206b36b4ecd45be050046ad95bf15e
audit: Fix wrong task in comparison of session ID

The audit_filter_rules() function in auditsc.c compared the session ID
with the credentials of the current task, while it should use the
credentials of the task given to audit_filter_rules() as a parameter
(tsk).

GitHub issue:
https://github.com/linux-audit/audit-kernel/issues/82

Fixes: f5eb1d26c29f ("audit: add support for session ID user filter")
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Reviewed-by: Richard Guy Briggs <rgb@redhat.com>
[PM: not user visible, dropped stable]
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/auditsc.c