Commit c292bb89 authored by Shawn Webb's avatar Shawn Webb
Browse files

Fix conditional



Check the proper variable when adding an Integriforce rule.
Signed-off-by: Shawn Webb's avatarShawn Webb <shawn.webb@hardenedbsd.org>
Submitted-by:	Airbus CyberSecurity Engineering Team
parent 3ed56140
......@@ -474,8 +474,8 @@ kernel_add_rule(struct thread *td, secadm_rule_t *rule, int ruleset)
r->sr_integriforce_data->si_hash = hash;
r->sr_integriforce_data->si_cache = 0;
if (!(rule->sr_integriforce_data->si_mode == 0 ||
rule->sr_integriforce_data->si_mode == 1)) {
if (!(r->sr_integriforce_data->si_mode == 0 ||
r->sr_integriforce_data->si_mode == 1)) {
kernel_free_rule(r);
return (EINVAL);
}
......
Supports Markdown
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