]> git.baikalelectronics.ru Git - kernel.git/commit
audit: fix a net reference leak in audit_list_rules_send()
authorPaul Moore <paul@paul-moore.com>
Tue, 21 Apr 2020 13:10:56 +0000 (09:10 -0400)
committerPaul Moore <paul@paul-moore.com>
Wed, 22 Apr 2020 19:23:10 +0000 (15:23 -0400)
commit0e1916cc37bf5f50d3cff8d559761c6c1ecfe946
tree4098fe58abae1e7d64162498c83a4423142189ad
parent44fee44ccc765925f08b341a80ca6e2d3d1ed0d8
audit: fix a net reference leak in audit_list_rules_send()

If audit_list_rules_send() fails when trying to create a new thread
to send the rules it also fails to cleanup properly, leaking a
reference to a net structure.  This patch fixes the error patch and
renames audit_send_list() to audit_send_list_thread() to better
match its cousin, audit_send_reply_thread().

Reported-by: teroincn@gmail.com
Reviewed-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/audit.c
kernel/audit.h
kernel/auditfilter.c