]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fix AUDIT_FILTER_PREPEND handling
authorAmy Griffis <amy.griffis@hp.com>
Fri, 2 Jun 2006 17:16:01 +0000 (13:16 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 20 Jun 2006 09:25:28 +0000 (05:25 -0400)
commit355e4def5bb62bd911678cb5fe4c38876e6d8d52
tree9496dcc64e7cf94f4e87f01957ef41ed18b13e40
parent67e528db8d90ee79af2182a69ce09131b6bef9fb
[PATCH] fix AUDIT_FILTER_PREPEND handling

Clear AUDIT_FILTER_PREPEND flag after adding rule to list.  This
fixes three problems when a rule is added with the -A syntax:

    - auditctl displays filter list as "(null)"
    - the rule cannot be removed using -d
    - a duplicate rule can be added with -a

Signed-off-by: Amy Griffis <amy.griffis@hp.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/auditfilter.c