audit: make audit_del_rule() more robust
authorRichard Guy Briggs <rgb@redhat.com>
Wed, 5 Aug 2015 19:23:09 +0000 (15:23 -0400)
committerPaul Moore <pmoore@redhat.com>
Wed, 5 Aug 2015 21:46:42 +0000 (17:46 -0400)
commit8c85fc9ae69a4510ba5e2bd5fac2c1d9d60967ad
tree2ac589add6d037ee2f3f1c736ce276d72fd85103
parentae9d2fb482fa48f637b6705e6fef6f7f999ec779
audit: make audit_del_rule() more robust

Move the access to the entry for audit_match_signal() to earlier in the
function in case the entry found is the same one passed in.  This will enable
it to be used by audit_remove_mark_rule().

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
[PM: tweaked subject line as it no longer made sense after multiple revs]
Signed-off-by: Paul Moore <pmoore@redhat.com>
kernel/auditfilter.c