[Bug 1824961] Re: AppArmor blocks apport python hook from working

2019-04-16 Thread Jamie Strandboge
"I guess the question is: Shouldn't we have a python-apport abstraction that apps (or local admin) can include to make debugging work under apparmor? It should probably live in apport, I guess, so apport can define which files it needs." Perhaps an abstraction makes sense to optionally add it in f

[Bug 1824961] Re: AppArmor blocks apport python hook from working

2019-04-16 Thread Julian Andres Klode
> they have to do with python applications with apport hooks that are confined with apparmor. The hook is defined in site.py, so by definition all python applications have the hook, and thus all python applications that are confined with apparmor. So either we want that apport for all of them, or

[Bug 1824961] Re: AppArmor blocks apport python hook from working

2019-04-16 Thread Jamie Strandboge
I might also mention on IRC the exact type of thing why we've had these rules in the profile that ship them: [119698.000187] audit: type=1400 audit(1555405334.985:222): apparmor="DENIED" operation="exec" profile="/usr/sbin/kopano-search" name="/usr/bin/x86_64-linux-gnu-gcc-8" pid=15647 comm="kopan

[Bug 1824961] Re: AppArmor blocks apport python hook from working

2019-04-16 Thread Jamie Strandboge
Traditionally we have actually put these accesses in the packages that ship the profile, like Marc said, because profilers may not want the profile to automatically have everything apport requires. These accesses should *not* be in the python abstraction because the accesses have nothing to do with

[Bug 1824961] Re: AppArmor blocks apport python hook from working

2019-04-16 Thread Julian Andres Klode
This is specifically not a kopanocore issue, but an issue with all Python programs that have an AppArmor profile. Patching each of them to allow Apport to run vs. the Python abstraction would make no sense. ** Package changed: kopanocore (Ubuntu) => apparmor (Ubuntu) -- You received this bug not

[Bug 1824961] Re: AppArmor blocks apport python hook from working

2019-04-16 Thread Julian Andres Klode
I don't have any examples atm, but we know it tries to read cputable at least: /usr/share/dpkg/cputable r It might also need access to apt lists, but this needs investigating /var/lib/apt/lists/** r /etc/apt/apt.conf r /etc/apt/apt.conf.d/** r /etc/apt/sources.list r /etc/apt/sources.list.d/** r

[Bug 1824961] Re: AppArmor blocks apport python hook from working

2019-04-16 Thread Marc Deslauriers
Do you have any examples of the denials it is hitting? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1824961 Title: AppArmor blocks apport python hook from working To manage notifications about thi

[Bug 1824961] Re: AppArmor blocks apport python hook from working

2019-04-16 Thread Marc Deslauriers
Reassigning to the kopanocore package as that is what contains the problematic profile. ** Package changed: apparmor (Ubuntu) => kopanocore (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/18249