abstractions/python not including /usr/include/python folders
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: apparmor
How to find:
hani@JustD:~$ cat /home/hani/myapp
#! /usr/bin/python
hani@JustD:~$ sudo aa-autodep /home/hani/myapp
hani@JustD:~$ chmod +x myapp
hani@JustD:~$ ./myapp
hani@JustD:~$ sudo aa-logprof home.hani.myapp
Reading log entries from /var/log/syslog.
Updating AppArmor profiles in /etc/apparmor.d.
Complain-mode changes:
Profile: /home/hani/myapp
Path: /usr/include/
Mode: r
Severity: unknown
abstractions/python doesn't include the python folders in /usr/include. These are:
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
Fix: Adding /usr/include/
I've attached a diff for that.
Indeed even a minimalistic python application reads pyconfig.h so adding something like this to abstractions/python would be a very good idea:
/usr/include/ python2. [4567]/ pyconfig. h r,