[apparmor] [Question] Apparmor running on Python2.7 only?

Jae Suk Park jspark99 at gmail.com
Mon Nov 9 04:20:38 UTC 2015


Can Apparmor run on python 2.7 environment only?
My embeded yocto linux system has only python 2.7 installed and no more
free storage for python3.

This was my experiment to install apparmor without python3 in ubuntu

1. $ sudo apt-get remove python3 python3-minimal python3.4-minimal
   python3 related packages were removed and python2.7 remained.

2. $ ls -l /usr/bin/python*
lrwxrwxrwx 1 root root       9 OCT 27 10:28 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root       9 OCT 27 10:28 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 3156448  6 Jun 23 03:59 /usr/bin/python2.7

3. but when I try to install apparmor ubuntu package, libpython3 related
pacakages is installed
$ sudo apt-get install apparmor-utils
The following NEW packages will be installed:
  apparmor apparmor-utils dh-python libapparmor-perl python3
python3-apparmor
  python3-libapparmor python3-minimal python3-pkg-resources python3.4
  python3.4-minimal
The following packages will be upgraded:
  libpython3.4 libpython3.4-minimal libpython3.4-stdlib
3 upgraded, 11 newly installed, 0 to remove and 192 not upgraded.
Need to get 5,596 kB of archives.
After this operation, 6,987 kB of additional disk space will be used.

4. I guess Apparmor package is deeply dependent on python3.
also I tried to "make install" from source code without python3 from #3
procedure.
but got "ImportError: No module named apparmor.tools"
$ sudo aa-complain
Traceback (most recent call last):
  File "/usr/sbin/aa-complain", line 17, in <module>
    import apparmor.tools
ImportError: No module named apparmor.tools

Is there a way to install apparmor-utils(library and python script) on
python2.7 environment?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20151109/1e81d215/attachment.html>


More information about the AppArmor mailing list