Comment 0 for bug 1899218

Revision history for this message
Emilia Torino (emitorino) wrote : Incorrect warning from sudo apparmor_parser -rW /etc/apparmor.d/usr.sbin.sssd

apparmor_parser on a force complained profile produces an incorrect warning message:

$ sudo apparmor_parser -rW /etc/apparmor.d/usr.sbin.sssd
Warning: found usr.sbin.sssd in /etc/apparmor.d/force-complain, forcing complain mode
Warning from /etc/apparmor.d/usr.sbin.sssd (/etc/apparmor.d/usr.sbin.sssd line 54): Warning failed to create cache: usr.sbin.sssd

Even though not generating the cache at all is expected, it should describe caching is disabled for force complained profiles instead of failure to create it.

$ lsb_release -rd
Description: Ubuntu Groovy Gorilla (development branch)
Release: 20.10

$ apt-cache policy apparmor
apparmor:
  Installed: 3.0.0~beta1-0ubuntu6
  Candidate: 3.0.0~beta1-0ubuntu6
  Version table:
 *** 3.0.0~beta1-0ubuntu6 500
        500 http://archive.ubuntu.com/ubuntu groovy/main amd64 Packages
        100 /var/lib/dpkg/status