Here's v2 of the patch that fixes the issue with aa-complain. (It turned out that set_profile_flags() uses its own regex, which needed a similar fix.)
Compared to v1, I also fixed the handling of profile "/foo" - that's the ("??.+?"??) -> "?(.+?)"?? change. Besides the obvious move of the parenthesis, also note the removed questionmark which is an important part of the fix.
The other notes from my previous comment/patch still apply.
Here's v2 of the patch that fixes the issue with aa-complain. (It turned out that set_profile_flags() uses its own regex, which needed a similar fix.)
Compared to v1, I also fixed the handling of profile "/foo" - that's the ("??.+?"??) -> "?(.+?)"?? change. Besides the obvious move of the parenthesis, also note the removed questionmark which is an important part of the fix.
The other notes from my previous comment/patch still apply.