mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
Add basic controls for dfa optimization
This commit is contained in:
@@ -523,7 +523,7 @@ static int process_profile_name_xmatch(struct codomain *cod)
|
||||
aare_delete_ruleset(rule);
|
||||
return FALSE;
|
||||
}
|
||||
cod->xmatch = aare_create_dfa(rule, 0, &cod->xmatch_size,
|
||||
cod->xmatch = aare_create_dfa(rule, &cod->xmatch_size,
|
||||
dfaflags);
|
||||
aare_delete_ruleset(rule);
|
||||
if (!cod->xmatch)
|
||||
@@ -667,7 +667,7 @@ int process_regex(struct codomain *cod)
|
||||
goto out;
|
||||
|
||||
if (regex_type == AARE_DFA && cod->dfarule_count > 0) {
|
||||
cod->dfa = aare_create_dfa(cod->dfarules, 0, &cod->dfa_size,
|
||||
cod->dfa = aare_create_dfa(cod->dfarules, &cod->dfa_size,
|
||||
dfaflags);
|
||||
aare_delete_ruleset(cod->dfarules);
|
||||
cod->dfarules = NULL;
|
||||
|
Reference in New Issue
Block a user