[2407384.116110] audit: type=1400 audit(1511338917.340:2516): apparmor="DENIED" operation="file_inherit" info="Failed name lookup - disconnected path" error=-13 namespace="root//lxd-bionic-i386-kopano_<var-lib-lxd>" profile="/usr/sbin/kopano-server//kopano_userscripts" name="run/mysqld/mysqld.sock" pid=18187 comm="createuser" requested_mask="wr" denied_mask="wr" fsuid=113 ouid=112
The sub profile also needs attach disconnect for mysql
[2407384.116110] audit: type=1400 audit(151133891 7.340:2516) : apparmor="DENIED" operation= "file_inherit" info="Failed name lookup - disconnected path" error=-13 namespace= "root// lxd-bionic- i386-kopano_ <var-lib- lxd>" profile= "/usr/sbin/ kopano- server/ /kopano_ userscripts" name="run/ mysqld/ mysqld. sock" pid=18187 comm="createuser" requested_mask="wr" denied_mask="wr" fsuid=113 ouid=112
The sub profile also needs attach disconnect for mysql