AppArmor change_hat slow when lots of hats are loaded
Bug #903579 reported by
John Johansen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
The apparmor change_hat api uses a linear scan of all hats loaded. Which causes it to slow down as the list gets longer. This should be transitioned to a better data structure to make the match faster.
Changed in apparmor: | |
status: | New → Triaged |
To post a comment you must log in.
One potential improvement is when shared policy load finally gets implemented. All hats in a shared group could be scanned simitaneously using the dfa, resulting in a linear to input (hat name) cost lookup for the group. This would result in each group having a linear lookup cost.