diff options
author | Eric Paris <eparis@redhat.com> | 2009-06-11 14:31:34 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-23 23:50:36 -0400 |
commit | e85188f424c8eec7f311deed9a70bec57aeed741 (patch) | |
tree | 3456260b54bc8fd8d336d5e8865104480d5ac0fe /kernel/perf_counter.c | |
parent | b87ce6e4187c24b06483c8266822ce5e6b7fa7f3 (diff) |
Audit: dereferencing krule as if it were an audit_watch
audit_update_watch() runs all of the rules for a given watch and duplicates
them, attaches a new watch to them, and then when it finishes that process
and has called free on all of the old rules (ok maybe still inside the rcu
grace period) it proceeds to use the last element from list_for_each_entry_safe()
as if it were a krule rather than being the audit_watch which was anchoring
the list to output a message about audit rules changing.
This patch unfies the audit message from two different places into a helper
function and calls it from the correct location in audit_update_rules(). We
will now get an audit message about the config changing for each rule (with
each rules filterkey) rather than the previous garbage.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/perf_counter.c')
0 files changed, 0 insertions, 0 deletions