TMAegisBeta
Mais regras para mysql

MySQL

TMA-MYSQL-1.7

Ensure MySQL is Run Under a Sandbox Environment

BaixaNível 2Revisão manualmysql

Descrição

Use of the chroot() system call at startup, Systemd with settings to achieve isolation, or docker will put MySQL in a Sandbox environment.

Como é verificado

Método de auditoria: Revisão manual

Esta recomendação não pode ser verificada automaticamente. Uma varredura a lista com estas instruções quando você passa --include-manual.

Check whether MySQL is confined: chroot option (grep -r '^chroot' /etc/mysql /etc/my.cnf*; must differ from datadir), systemd unit runs as a non-root user (systemctl status mysqld: Main PID not owned by root), or it runs in a container (docker ps / podman ps). None of these is a fail.

Como é corrigido

Método de correção: Orientação ou patch de infraestrutura

Run MySQL under systemd as the mysql user, in a container, or with chroot=<path> under [mysqld], and keep SELinux/AppArmor confinement enabled.

Propriedades

Sistemas operacionais
Qualquer
Tags
mysqldatabaseosisolationmanual
Referência
CIS Oracle MySQL Community Server 8.4 Benchmark v1.1.0 - 1.7 Ensure MySQL is Run Under a Sandbox Environment