Skip to content

parser: Don't skip cache just because optimizations are specified

John Johansen requested to merge jjohansen/apparmor:cache-fix into master

The parser currently skips the cache if optimizations are specified because it can not determine if the cached policy was compiled with the specified optimization. However this causes cache misses even if policy is cached with those options, and distros are setting some optimizations by default.

Instead of skipping reading the cache if optimizations are set, users can force overwriting the cache if needed, until the parser can store aditional meta info in the cache.

BugLink: http://bugs.launchpad.net/bugs/1820068 Signed-off-by: John Johansen john.johansen@canonical.com

Merge request reports