Page MenuHomeSolus

AppArmor Python tools/libraries are broken
Closed, ResolvedPublic

Description

aa-genprof wants to run with python3 per the bang-line but an apparmor module for python2.7 is installed. Run with python2 it still does not work as the LibAppArmor library is missing.

Revisions and Commits

Event Timeline

$ sudo aa-logprof 
Traceback (most recent call last):
  File "/usr/sbin/aa-logprof", line 18, in <module>
    import apparmor.aa as apparmor
ModuleNotFoundError: No module named 'apparmor'
$ sudo aa-enforce /etc/apparmor.d/local/usr.sbin.winbindd 
Traceback (most recent call last):
  File "/usr/sbin/aa-enforce", line 17, in <module>
    import apparmor.tools
ModuleNotFoundError: No module named 'apparmor'