]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] audit: fix oops removing watch if audit disabled
authorTony Jones <tonyj@suse.de>
Sun, 24 Jun 2007 00:16:47 +0000 (17:16 -0700)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 Aug 2007 08:02:32 +0000 (10:02 +0200)
commit78977b665b8f03c56bbb0f7549200e058b7e067f
tree225535867bc334e1db980bbf02cda7a93f936c4a
parentea317f3c75a3ff7316d6abbcfa661df277cf4d98
[PATCH] audit: fix oops removing watch if audit disabled

Removing a watched file will oops if audit is disabled (auditctl -e 0).

To reproduce:
- auditctl -e 1
- touch /tmp/foo
- auditctl -w /tmp/foo
- auditctl -e 0
- rm /tmp/foo (or mv)

Signed-off-by: Tony Jones <tonyj@suse.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/auditfilter.c