Comment 0 for bug 1229393

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This command should create /var/cache/apparmor/.features, but it does not:
$ sudo apparmor_parser -r -W --cache-loc=/var/cache/apparmor /var/lib/apparmor/profiles/click_...

While we have '[parser patch] fix apparmor cache tempfile location to use passed arg' in Ubuntu's apparmor (0039-fix-parser-cache-loc.patch), it doesn't actually write .features in /var/cache/apparmor. It looks like this line was missed in that patch:
    if (asprintf(&cache_features_path, "%s/cache/.features", basedir) == -1) {