2007-08-28 23:05:56 +00:00
|
|
|
# vim:syntax=apparmor
|
2006-05-02 00:25:47 +00:00
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Copyright (C) 2002-2006 Novell/SUSE
|
2009-11-04 14:25:42 -06:00
|
|
|
# Copyright (C) 2009 Canonical Ltd.
|
2006-05-02 00:25:47 +00:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
|
|
# License published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2020-05-05 00:08:39 -07:00
|
|
|
abi <abi/3.0>,
|
|
|
|
|
2021-12-04 20:27:25 +01:00
|
|
|
/usr/{local/,}lib{,32,64}/python{2.[4-7],3,3.[0-9],3.1[0-9]}/**.{pyc,so,so.*[0-9]} mr,
|
2021-12-04 20:09:52 +01:00
|
|
|
/usr/{local/,}lib{,32,64}/python{2.[4-7],3,3.[0-9],3.1[0-9]}/**.{egg,py,pth} r,
|
|
|
|
/usr/{local/,}lib{,32,64}/python{2.[4-7],3,3.[0-9],3.1[0-9]}/{site,dist}-packages/ r,
|
2021-12-04 20:27:25 +01:00
|
|
|
/usr/{local/,}lib{,32,64}/python{2.[4-7],3,3.[0-9],3.1[0-9]}/{site,dist}-packages/**/ r,
|
|
|
|
/usr/{local/,}lib{,32,64}/python{2.[4-7],3,3.[0-9],3.1[0-9]}/{site,dist}-packages/*.dist-info/{METADATA,namespace_packages.txt} r,
|
|
|
|
/usr/{local/,}lib{,32,64}/python{2.[4-7],3,3.[0-9],3.1[0-9]}/{site,dist}-packages/*.VERSION r,
|
|
|
|
/usr/{local/,}lib{,32,64}/python{2.[4-7],3,3.[0-9],3.1[0-9]}/{site,dist}-packages/*.egg-info/PKG-INFO r,
|
2021-12-04 20:09:52 +01:00
|
|
|
/usr/{local/,}lib{,32,64}/python3.{1,}[0-9]/lib-dynload/*.so mr,
|
2007-08-28 23:05:56 +00:00
|
|
|
|
|
|
|
# Site-wide configuration
|
2021-08-11 21:37:40 +02:00
|
|
|
/etc/python{2.[4-7],3.[0-9],3.1[0-9]}/** r,
|
2007-08-28 23:05:56 +00:00
|
|
|
|
2010-01-29 10:10:31 -08:00
|
|
|
# shared python paths
|
|
|
|
/usr/share/{pyshared,pycentral,python-support}/** r,
|
|
|
|
/{var,usr}/lib/{pyshared,pycentral,python-support}/** r,
|
|
|
|
/usr/lib/{pyshared,pycentral,python-support}/**.so mr,
|
|
|
|
/var/lib/{pyshared,pycentral,python-support}/**.pyc mr,
|
2018-08-15 13:45:35 +02:00
|
|
|
/usr/lib/python3/dist-packages/**.so mr,
|
2007-08-28 23:05:56 +00:00
|
|
|
|
|
|
|
# wx paths
|
|
|
|
/usr/lib/wx/python/*.pth r,
|
2011-11-30 08:56:45 -08:00
|
|
|
|
|
|
|
# python build configuration and headers
|
2021-08-11 21:37:40 +02:00
|
|
|
/usr/include/python{2.[4-7],3.[0-9],3.1[0-9]}*/pyconfig.h r,
|
2019-01-24 03:03:11 -08:00
|
|
|
|
|
|
|
# Include additions to the abstraction
|
2020-05-30 19:46:08 +02:00
|
|
|
include if exists <abstractions/python.d>
|