Thanks for the patch!
Just curious - did you test if for cases where the profile filename differs from the binary filename? For example, I slightly ;-) doubt a profile for /bin/foo in /etc/apparmor.d/my_fancy_foo_profile will be found with your patch.
To make things more interesting, I have a completely different patch for this bug pending on the AppArmor mailinglist: https://lists.ubuntu.com/archives/apparmor/2015-February/007219.html
Thanks for the patch!
Just curious - did you test if for cases where the profile filename differs from the binary filename? For example, I slightly ;-) doubt a profile for /bin/foo in /etc/apparmor. d/my_fancy_ foo_profile will be found with your patch.
To make things more interesting, I have a completely different patch for this bug pending on the AppArmor mailinglist: /lists. ubuntu. com/archives/ apparmor/ 2015-February/ 007219. html
https:/