aa-status wastes CPU time when using --enabled

Bug #1516400 reported by Christian Boltz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
New
Undecided
Unassigned

Bug Description

aa-status --enabled reads the full list of profiles, but for finding out the required information, it would be enough to check if at least one profile is loaded.

Ways to fix this:
a) have an optional parameter for get_profiles() to check for "at least one" instead of reading the full list
b) split out a separate aa-enabled tool

See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805145 which brought up this issue.

Tags: aa-tools
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.