aa-enforce fails with ImportError: No module named rule.capability

Bug #1407437 reported by ayambit
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
Fix Released
High
Steve Beattie
apparmor (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Downloaded from: deb http://ppa.launchpad.net/apparmor-dev/apparmor-daily-trunk/ubuntu trusty main
Package version: 2.8.95.1ubuntu3+2844+24~ubuntu14.04.1

[0] (^_^) root@boxen /etc/apt>aa-enforce
Traceback (most recent call last):
  File "/usr/sbin/aa-enforce", line 17, in <module>
    import apparmor.tools
  File "/usr/lib/python2.7/dist-packages/apparmor/tools.py", line 17, in <module>
    import apparmor.aa as apparmor
  File "/usr/lib/python2.7/dist-packages/apparmor/aa.py", line 55, in <module>
    from apparmor.rule.capability import CapabilityRuleset, CapabilityRule
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_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"

[0] (^_^) root@boxen /etc/apt>dpkg -l | grep apparmor
ii apparmor 2.8.95.1ubuntu3+2844+24~ubuntu14.04.1 amd64 User-space parser utility for AppArmor
ii apparmor-easyprof 2.8.95.1ubuntu3+2844+24~ubuntu14.04.1 all AppArmor easyprof profiling tool
ii apparmor-profiles 2.8.95.1ubuntu3+2844+24~ubuntu14.04.1 all Profiles for AppArmor Security policies
ii apparmor-utils 2.8.95.1ubuntu3+2844+24~ubuntu14.04.1 amd64 Utilities for controlling AppArmor
ii libapparmor-perl 2.8.95.1ubuntu3+2844+24~ubuntu14.04.1 amd64 AppArmor library Perl bindings
ii libapparmor1:amd64 2.8.95.1ubuntu3+2844+24~ubuntu14.04.1 amd64 changehat AppArmor library
ii python-apparmor 2.8.95.1ubuntu3+2844+24~ubuntu14.04.1 amd64 AppArmor Python utility library
ii python-libapparmor 2.8.95.1ubuntu3+2844+24~ubuntu14.04.1 amd64 AppArmor library Python bindings
ii python3-apparmor 2.8.95.1ubuntu3+2844+24~ubuntu14.04.1 amd64 AppArmor Python3 utility library
ii python3-libapparmor 2.8.95.1ubuntu3+2844+24~ubuntu14.04.1 amd64 AppArmor library Python3 bindings

Tags: aa-tools

Related branches

tags: added: aa-tools
Revision history for this message
Steve Beattie (sbeattie) wrote :

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.

Changed in apparmor (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Steve Beattie (sbeattie)
status: Confirmed → New
importance: High → Undecided
assignee: Steve Beattie (sbeattie) → nobody
Changed in apparmor:
assignee: nobody → Steve Beattie (sbeattie)
importance: Undecided → High
status: New → Triaged
milestone: none → 2.9.2
Changed in apparmor (Ubuntu):
status: New → Invalid
Revision history for this message
Steve Beattie (sbeattie) wrote :

Sorry, I was incorrect; this only affects trunk as the apparmor 2.9.x branch does not contain the new rule/ subdirectory.

Changed in apparmor:
milestone: 2.9.2 → none
Steve Beattie (sbeattie)
Changed in apparmor:
status: Triaged → Fix Committed
Revision history for this message
Steve Beattie (sbeattie) wrote :

This was fixed on trunk, closing.

Changed in apparmor:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.