mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-01 14:55:10 +00:00
Update parser to allow for multiple debug dump options via -D or --dump.
This will allow turning on and off various debug dumps as needed. Multiple dump options can be specified as needed by using multiple options. eg. apparmor_parser -D variables apparmor_parser -D dfa-tree -D dfa-simple-tree The help option has also been updated to take an optional argument to display help about give parameters, currently only dump is supported. eg. apparmor_parser -h # standard help apparmor_parser -h=dump # dump info about --dump options Also Enable the dfa expression tree dumps
This commit is contained in:
@@ -523,7 +523,8 @@ 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, 0, &cod->xmatch_size,
|
||||
dfaflags);
|
||||
aare_delete_ruleset(rule);
|
||||
if (!cod->xmatch)
|
||||
return FALSE;
|
||||
@@ -666,7 +667,8 @@ 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, 0, &cod->dfa_size,
|
||||
dfaflags);
|
||||
aare_delete_ruleset(cod->dfarules);
|
||||
cod->dfarules = NULL;
|
||||
if (!cod->dfa)
|
||||
|
Reference in New Issue
Block a user