Comment 32 for bug 1861408

Revision history for this message
dinar qurbanov (qdinar) wrote :

python message after update to ubuntu 20.04 :
May 29 08:54:00 dinar-comp kernel: [ 369.424679] audit: type=1400 audit(1590731640.601:54): apparmor="DENIED" operation="file_mmap" profile="fire
fox//lsb_release" name="/usr/bin/python3.8" pid=2939 comm="lsb_release" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

there are several places about python:

  profile lsb_release {
...
    #include <abstractions/python>
...
    /usr/include/python2.[4567]/pyconfig.h r,
...
    /usr/local/lib/python3.[0-6]/dist-packages/ r,
...
    /usr/bin/python3.[0-7] mr,
...
  }

i change this ones, this way:

    /usr/local/lib/python3.[0-8]/dist-packages/ r,
    /usr/bin/python3.[0-8] mr,

i look /etc/apparmor.d/abstractions/python and see that python versions are already appreciated up to 3.9.