AppArmor blocks apport python hook from working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Wishlist
|
Unassigned | ||
apparmor (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
kopanocore (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The Python profile is very strict, but it prevents Python applications from producing proper crash reports using apport, as the apport hook cannot be loaded, as it requires access to dpkg's cputable, and likely also apt config files and dpkg status files.
I'm wondering what the right approach here is: Should the apport hook work under AppArmor, and do we thus have to add the files the hook needs; or should we just say "screw it, we want the additional security" and not get proper error reporting while AppArmor is confining the program?
This can be seen in recent autopkgtest failure for kopanocore:
+ kopano-search --help
Traceback (most recent call last):
File "/usr/sbin/
import kopano_search
File "/usr/lib/
from queue import Empty
File "/usr/lib/
from _queue import Empty
ImportError: /usr/lib/
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/
from apport.report import Report
File "/usr/lib/
import apport.fileutils
File "/usr/lib/
from apport.
File "/usr/lib/
import apt
File "/usr/lib/
apt_
apt_pkg.Error: E:Error reading the CPU table
summary: |
- Blocks apport python hook from working + AppArmor blocks apport python hook from working |
Reassigning to the kopanocore package as that is what contains the problematic profile.