Commit 3c797e51 authored by Ondrej Mosnacek's avatar Ondrej Mosnacek Committed by Paul Moore

selinux: drop the unnecessary aurule_callback variable

Its value is actually not changed anywhere, so it can be substituted for
a direct call to audit_update_lsm_rules().
Signed-off-by: default avatarOndrej Mosnacek <omosnace@redhat.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 46434ba0
...@@ -3693,15 +3693,11 @@ int selinux_audit_rule_match(u32 sid, u32 field, u32 op, void *vrule) ...@@ -3693,15 +3693,11 @@ int selinux_audit_rule_match(u32 sid, u32 field, u32 op, void *vrule)
return match; return match;
} }
static int (*aurule_callback)(void) = audit_update_lsm_rules;
static int aurule_avc_callback(u32 event) static int aurule_avc_callback(u32 event)
{ {
int err = 0; if (event == AVC_CALLBACK_RESET)
return audit_update_lsm_rules();
if (event == AVC_CALLBACK_RESET && aurule_callback) return 0;
err = aurule_callback();
return err;
} }
static int __init aurule_init(void) static int __init aurule_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment