aa-enforce fails with ImportError: No module named rule.capability
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Fix Released
|
High
|
Steve Beattie | ||
apparmor (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Downloaded from: deb http://
Package version: 2.8.95.
[0] (^_^) root@boxen /etc/apt>aa-enforce
Traceback (most recent call last):
File "/usr/sbin/
import apparmor.tools
File "/usr/lib/
import apparmor.aa as apparmor
File "/usr/lib/
from apparmor.
ImportError: No module named rule.capability
[0] (^_^) root@boxen /etc/apt>uname -a
Linux boxen 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[0] (^_^) root@boxen /etc/apt>cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
[0] (^_^) root@boxen /etc/apt>dpkg -l | grep apparmor
ii apparmor 2.8.95.
ii apparmor-easyprof 2.8.95.
ii apparmor-profiles 2.8.95.
ii apparmor-utils 2.8.95.
ii libapparmor-perl 2.8.95.
ii libapparmor1:amd64 2.8.95.
ii python-apparmor 2.8.95.
ii python-libapparmor 2.8.95.
ii python3-apparmor 2.8.95.
ii python3-libapparmor 2.8.95.
Related branches
tags: | added: aa-tools |
Changed in apparmor: | |
status: | Triaged → Fix Committed |
The issue is that the make install phase of apparmor 2.9.1 (and the bzr versions) are not installing the new utils/apparmor/ rule/ subdirectory. I'm digging into what's wrong with the setuptools script now.
Closing for Ubuntu, as this version has not landed in any of the releases (including vivid) yet.