TMAegisBeta
Weitere Regeln für postgres

PostgreSQL

TMA-POSTGRES-8.1

Ensure PostgreSQL subdirectory locations are outside the data cluster

NiedrigStufe 1Manuelle Prüfungpostgres

Beschreibung

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.

So wird geprüft

Prüfmethode: Manuelle Prüfung

Diese Empfehlung kann nicht automatisch geprüft werden. Ein Scan führt sie mit diesen Anweisungen auf, wenn Sie --include-manual übergeben.

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.

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-Patch

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

Eigenschaften

Betriebssysteme
Beliebig
Tags
postgresdatabasefilesystemmanual
Referenz
CIS PostgreSQL 18 Benchmark v1.0.0 - 8.1 Ensure PostgreSQL subdirectory locations are outside the data cluster