TMAegis
Más reglas para postgres

TMA-POSTGRES-8.1

Ensure PostgreSQL subdirectory locations are outside the data cluster

BajaNivel 1Revisión manualpostgres

Descripción

The PostgreSQL cluster is organized to carry out specific tasks in subdirectories. For the purposes of performance, reliability, and security some of these subdirectories should be relocated outside the data cluster.

Cómo se verifica

Método de auditoría: Revisión manual

Esta recomendación no se puede verificar automáticamente. Un escaneo la lista con estas instrucciones cuando se pasa --include-manual.

Run SELECT name, setting FROM pg_settings WHERE name ~ '_directory$' OR name ~ '_tablespace'; and inspect the returned paths: log/stats/temp/tablespace locations should be outside the data cluster and only superusers and authorized users may access them.

Cómo se corrige

Método de corrección: Guía o parche de infraestructura

Relocate log_directory, tablespaces and other subdirectories outside PGDATA, owned by postgres with mode 0700, and update postgresql.conf accordingly.

Propiedades

Sistemas operativos
Cualquiera
Etiquetas
postgresdatabasefilesystemmanual
Referencia
CIS PostgreSQL 18 Benchmark v1.0.0 - 8.1 Ensure PostgreSQL subdirectory locations are outside the data cluster