mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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: Ondrej Mosnacek <omosnace@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
committed by
Paul Moore
parent
46434ba040
commit
3c797e514b
@@ -3693,15 +3693,11 @@ out:
|
|||||||
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)
|
||||||
|
Reference in New Issue
Block a user