This is the default example configuration of usr.sbin.mariadbd provided by MariaDB. This config file was generated by MariaDB running on Debian 11.
It is located under: /etc/apparmor.d/usr.sbin.mariadbd
# This file is intentionally empty to disable apparmor by default for newer
# versions of MariaDB, while providing seamless upgrade from older versions
# and from mysql, where apparmor is used.
#
# By default, we do not want to have any apparmor profile for the MariaDB
# server. It does not provide much useful functionality/security, and causes
# several problems for users who often are not even aware that apparmor
# exists and runs on their system.
#
# Users can modify and maintain their own profile, and in this case it will
# be used.
#
# When upgrading from previous version, users who modified the profile
# will be prompted to keep or discard it, while for default installs
# we will automatically disable the profile.
Download the raw file with wget or curl
wget -O usr.sbin.mariadbd.example http://exampleconfig.com/static/raw/mariadb/debian11/etc/apparmor.d/usr.sbin.mariadbd
curl http://exampleconfig.com/static/raw/mariadb/debian11/etc/apparmor.d/usr.sbin.mariadbd > usr.sbin.mariadbd.example
Other config files you might find useful