mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Do permission accumulation in dfa minimization. This is necessary if accept
states with different permissions are to ever share a partition.
This commit is contained in:
parent
a949b075b4
commit
4e80416a4f
1 changed files with 4 additions and 1 deletions
|
@ -1826,10 +1826,13 @@ void DFA::minimize(dfaflags_t flags)
|
|||
|
||||
//if ((*p)->size() > 1)
|
||||
//cerr << rep->label << ": ";
|
||||
/* clear the state label for all non representative states */
|
||||
/* clear the state label for all non representative states,
|
||||
* and accumulate permissions */
|
||||
for (Partition::iterator i = ++(*p)->begin(); i != (*p)->end(); i++) {
|
||||
//cerr << " " << (*i)->label;
|
||||
(*i)->label = -1;
|
||||
rep->accept |= (*i)->accept;
|
||||
rep->audit |= (*i)->audit;
|
||||
}
|
||||
//if ((*p)->size() > 1)
|
||||
//cerr << "\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue