The attached adds the following to the python abstraction:
+
+  # python setup script used by apport
+  /etc/python{2,3}.[0-7]*/sitecustomize.py r,

sitecustomize.py is provided by apport in Ubuntu so that python
applications are properly hooked into apport. It can be used in a
variety of others ways as well. Iirc SUSE is using apport and I thought
this might be generally useful. I'm fine to carry this as an
Ubuntu-specific patch.

-- 
Jamie Strandboge             | http://www.canonical.com


Author: Jamie Strandboge
Description: allow read access of /etc/python{2,3}.[0-7]*/sitecustomize.py
 in python abstraction. This script is used by apport aware python applications
Bug-Ubuntu: https://launchpad.net/bugs/860856
Forwarded: no (Ubuntu-specific)

Index: apparmor-2.7.0/profiles/apparmor.d/abstractions/python
===================================================================
--- apparmor-2.7.0.orig/profiles/apparmor.d/abstractions/python	2012-01-03 14:19:46.000000000 -0600
+++ apparmor-2.7.0/profiles/apparmor.d/abstractions/python	2012-01-03 14:23:13.000000000 -0600
@@ -32,3 +32,6 @@
 
   # python build configuration and headers
   /usr/include/python{2,3}.[0-7]*/pyconfig.h r,
+
+  # python setup script used by apport
+  /etc/python{2,3}.[0-7]*/sitecustomize.py r,

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to