SV-253700r961041_rule
V-253700
SRG-APP-000176-DB-000068
MADB-10-004100
CAT I
10
If the SSL files are not secured properly in the file system, change the ownership and permissions with operating system operations.
Example:
chown mysql:mysql /path/to/file
chmod 440 /path/to/file
First, as the database administrator, verify the following settings: Note: If no specific directory given before the filename, the files are stored in DATADIR.
MariaDB> SHOW GLOBAL VARIABLES LIKE 'ssl_ca';
MariaDB> SHOW GLOBAL VARIABLES LIKE 'ssl_cert';
MariaDB> SHOW GLOBAL VARIABLES LIKE 'ssl_key';
MariaDB> SHOW GLOBAL VARIABLES LIKE 'ssl_crlpath';
MariaDB> SHOW GLOBAL VARIABLES LIKE 'datadir';
Verify the permissions of the above files.
Example:
ls -al /path/to/ssl_cert
MariaDB Enterprise Server runs as the mysql operating system user, thus should be owned by user mysql and group mysql with user read and group read file level permissions.
Example:
-r-------. 1 mysql
If the files and directories are not properly secured, this is a finding.
V-253700
False
MADB-10-004100
First, as the database administrator, verify the following settings: Note: If no specific directory given before the filename, the files are stored in DATADIR.
MariaDB> SHOW GLOBAL VARIABLES LIKE 'ssl_ca';
MariaDB> SHOW GLOBAL VARIABLES LIKE 'ssl_cert';
MariaDB> SHOW GLOBAL VARIABLES LIKE 'ssl_key';
MariaDB> SHOW GLOBAL VARIABLES LIKE 'ssl_crlpath';
MariaDB> SHOW GLOBAL VARIABLES LIKE 'datadir';
Verify the permissions of the above files.
Example:
ls -al /path/to/ssl_cert
MariaDB Enterprise Server runs as the mysql operating system user, thus should be owned by user mysql and group mysql with user read and group read file level permissions.
Example:
-r-------. 1 mysql
If the files and directories are not properly secured, this is a finding.
M
5475