AppArmor change_hat slow when lots of hats are loaded

Bug #903579 reported by John Johansen
8
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.

Revision history for this message
John Johansen (jjohansen) wrote :

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.

Changed in apparmor:
importance: Undecided → Wishlist
Steve Beattie (sbeattie)
Changed in apparmor:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.