Skip to content

Commit

Permalink
audit: WARN if audit_rule_change called illegally
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Paris <[email protected]>
eparis committed Oct 10, 2014
1 parent 3639f17 commit 739c950
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/auditfilter.c
Original file line number Diff line number Diff line change
@@ -1085,7 +1085,8 @@ int audit_rule_change(int type, __u32 portid, int seq, void *data,
audit_free_rule(entry);
break;
default:
return -EINVAL;
err = -EINVAL;
WARN_ON(1);
}

return err;

0 comments on commit 739c950

Please sign in to comment.