audit: do not get and put just to free a watch
authorEric Paris <eparis@redhat.com>
Fri, 18 Dec 2009 01:12:05 +0000 (20:12 -0500)
committerEric Paris <eparis@redhat.com>
Wed, 28 Jul 2010 13:58:17 +0000 (09:58 -0400)
commita05fb6cc573130915380e00d182a4c6571cec6b2
treec67e626c5307d89e6d7e65d0b2f9834c3591edb2
parente118e9c5638bbe877aa26b5cd2fd223cc24cdc8a
audit: do not get and put just to free a watch

deleting audit watch rules is not currently done under audit_filter_mutex.
It was done this way because we could not hold the mutex during inotify
manipulation.  Since we are using fsnotify we don't need to do the extra
get/put pair nor do we need the private list on which to store the parents
while they are about to be freed.

Signed-off-by: Eric Paris <eparis@redhat.com>
kernel/audit.h
kernel/audit_watch.c
kernel/auditfilter.c