3.9 Ensure 'server_audit_file_path' Has Appropriate Permissions

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version


MariaDB can operate using a variety of log files, each used for different purposes. These are the binary log, error log, slow query log, relay log, audit log and general log. Because these are files on the host operating system, they are subject to the permissions and ownership structure provided by the host and may be accessible by users other than the mysql user.


Limiting the accessibility of these objects will protect the confidentiality, integrity, and availability of the MariaDB logs.


Changing the permissions and ownership of the audit log file may have an impact on who can access and edit the audit log. Such changes can affect monitoring tools which maybe using a log file adapter or scripted alternatives. Also, the audit log may be used for alerting by infrastructure teams which can affect real-time audit capability.


Execute the following commands for the server_audit_file_path discovered in the audit procedure:

chmod 660 <server_audit_file_path>
chown mysql:mysql <server_audit_file_path>

See Also