Public bug reported:

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, the warning
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

** Affects: apparmor (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- Incorrect warning from sudo apparmor_parser -rW /etc/apparmor.d/usr.sbin.sssd
+ Incorrect warning from apparmor_parser -rW /etc/apparmor.d/usr.sbin.sssd

** Description changed:

  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.
+ Even though not generating the cache at all is expected, the warning
+ 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
+   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

** Summary changed:

- Incorrect warning from apparmor_parser -rW /etc/apparmor.d/usr.sbin.sssd
+ Incorrect warning from apparmor_parser on force complained profiles

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1899218

Title:
  Incorrect warning from apparmor_parser on force complained profiles

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1899218/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to