Cannot Add Request Hat or Use Default Hat in aa-logprof and mod_apparmor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
After installing apparmor, apparmor-utils, and libapache2-
Changing
ans = q.promptUser()
to
ans = q.promptUser(
OR
ans, selected = q.promptUser()
OR
ans, arg = q.promptUser()
resolves this problem because ans is no longer assigned a tuple data type and can be evaluated against CMD_* variables
Further execution of code is buggy due to collection.
---
Debugging info:
uname -a:
Linux hostname 4.4.0-112-generic #135-Ubuntu SMP Fri Jan 19 11:48:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/issue
Ubuntu 16.04.3 LTS \n \l
apt-cache policy apparmor-utils
apparmor-utils:
Installed: 2.10.95-0ubuntu2.8
Candidate: 2.10.95-0ubuntu2.8
*** 2.10.95-0ubuntu2.8 500
500 http://
100 /var/lib/
apt-cache policy apparmor
apparmor:
Installed: 2.10.95-0ubuntu2.6
Candidate: 2.10.95-0ubuntu2.8
Version table:
2.
500 http://
apt-cache policy libapache2-
libapache2-
Installed: 2.10.95-0ubuntu2.8
Candidate: 2.10.95-0ubuntu2.8
Version table:
*** 2.10.95-0ubuntu2.8 500
500 http://
100 /var/lib/
For the records: this is already fixed upstream (checked in master and the latest 2.11 branch), so Ubuntu "just" needs to pick up the fix.
commit e2039f021e42793 e07c1838499eae9 c22e1ea8f2
Author: Christian Boltz <email address hidden>
Date: Mon Aug 15 22:02:55 2016 +0200
See https:/ /bugs.launchpad .net/apparmor/ +bug/1538306 for details.