mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
parser: Improve the rule skip test.
Rules can be marked as being deleted/merged, and should be skipped on further processing. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -318,7 +318,7 @@ void post_process_file_entries(Profile *prof)
|
||||
void post_process_rule_entries(Profile *prof)
|
||||
{
|
||||
for (RuleList::iterator i = prof->rule_ents.begin(); i != prof->rule_ents.end(); i++) {
|
||||
if ((*i)->flags & RULE_FLAG_DELETED)
|
||||
if ((*i)->skip_processing())
|
||||
continue;
|
||||
(*i)->post_parse_profile(*prof);
|
||||
}
|
||||
|
Reference in New Issue
Block a user