audit: rename audit_log_remove_rule to disambiguate for trees

Rename audit_log_remove_rule() to audit_tree_log_remove_rule() to avoid
confusion with watch and mark rule removal/changes.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
Richard Guy Briggs 2014-10-02 22:05:24 -04:00 committed by Eric Paris
parent e85322d21c
commit 2991dd2b01
1 changed files with 2 additions and 2 deletions

View File

@ -449,7 +449,7 @@ static int tag_chunk(struct inode *inode, struct audit_tree *tree)
return 0; return 0;
} }
static void audit_log_remove_rule(struct audit_krule *rule) static void audit_tree_log_remove_rule(struct audit_krule *rule)
{ {
struct audit_buffer *ab; struct audit_buffer *ab;
@ -476,7 +476,7 @@ static void kill_rules(struct audit_tree *tree)
list_del_init(&rule->rlist); list_del_init(&rule->rlist);
if (rule->tree) { if (rule->tree) {
/* not a half-baked one */ /* not a half-baked one */
audit_log_remove_rule(rule); audit_tree_log_remove_rule(rule);
rule->tree = NULL; rule->tree = NULL;
list_del_rcu(&entry->list); list_del_rcu(&entry->list);
list_del(&entry->rule.list); list_del(&entry->rule.list);