On eoan, we need to add even more lines (I prefer to use /etc/apparmor.d/local/usr.sbin.mysqld):
dbus send
bus=system path=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=GetDynamicUsers peer=(name=org.freedesktop.systemd1),
capability dac_read_search,
/proc/*/status r,
/sys/devices/system/node/ r,
/sys/devices/system/node/** r,
On eoan, we need to add even more lines (I prefer to use /etc/apparmor. d/local/ usr.sbin. mysqld) :
path=/ org/freedesktop /systemd1
interface= org.freedesktop .systemd1. Manager
member= GetDynamicUsers
peer=( name=org. freedesktop. systemd1) , devices/ system/ node/ r, devices/ system/ node/** r,
dbus send
bus=system
capability dac_read_search,
/proc/*/status r,
/sys/
/sys/