I'm afraid this is _not_ easy to reproduce. (Well, the load failure when tunables/global is missing probably is, but but we need to find out _why_ tunables/global was missing in the profile.)
IIRC, you are the first one who noticed such a problem in all the years I use and work on AppArmor. I can't imagine what you did to trigger this, because all code I know (I just commited a *big* patch series for the aa-* tools, so I'd say I do know the code) would never forget to include tunables/global. So - can you please provide an _exact_ way how to reproduce this? Ideally that means to start with a tarball "/etc/apparmor.d/ before adding the mariadb profile", and then continue with the exact steps you did (including a "screenshot" of the aa-logprof run - "aa-logprof | tee /tmp/logprof-screenshot" or saving the console history should do this). If you can't provide all the details, it would at least be useful to know _how_ you created the profile and "just added path and complain flag" ;-) Which commands did you use? Any edits in $EDITOR or only using the aa-* tools? Also, what do you mean with "profile for mariadb [...] is empty in Ubuntu 16.04"? BTW: To make things even more funny, I'm not even using Ubuntu (I use openSUSE since 15 years). -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apparmor in Ubuntu. https://bugs.launchpad.net/bugs/1629203 Title: aa-logprof does not include #include <tunables/global> in profiles Status in apparmor package in Ubuntu: New Bug description: Ubuntu 16.04, fresh profile, systemctl reload apparmor says errors: сен 30 11:24:33 inetgw1 apparmor[13771]: Found reference to variable PROC, but is never declared This is because there is no #include <tunables/global> in profile. Question here is- why? Why aa-logprof did not add it while adding includes? Thank you! To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1629203/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

