Access to database files must be limited to relevant processes and to authorized, administrative users.
An XCCDF Rule
Description
<VulnDiscussion>Applications, including MariaDB, must prevent unauthorized and unintended information transfer via shared system resources. Permitting only MariaDB processes and authorized, administrative users to have access to the files where the database resides helps ensure that those files are not shared inappropriately and are not open to backdoor access and manipulation.</VulnDiscussion><FalsePositives></FalsePositives><FalseNegatives></FalseNegatives><Documentable>false</Documentable><Mitigations></Mitigations><SeverityOverrideGuidance></SeverityOverrideGuidance><PotentialImpacts></PotentialImpacts><ThirdPartyTools></ThirdPartyTools><MitigationControl></MitigationControl><Responsibility></Responsibility><IAControls></IAControls>
- ID
- SV-253713r961149_rule
- Severity
- Medium
- References
- Updated
Remediation - Manual Procedure
By default all of the MariaDB database files, log files, and backup files are located in the /var/lib/mysql.
To find the location of the datadir run this command:
Mariadb > SHOW GLOBAL VARIABLES LIKE 'datadir';