TMAegisBeta
更多 postgres 规则

PostgreSQL

TMA-POSTGRES-8.3

Ensure miscellaneous configuration settings are correct

低级别 1人工审核postgres

说明

This recommendation covers non-regular, special files, and dynamic libraries. PostgreSQL permits local logins via the UNIX DOMAIN SOCKET and, for the most part, anyone with a legitimate Unix login account can make the attempt. Limiting PostgreSQL login attempts can be made by relocating the UNIX DOMAIN SOCKET to a subdirectory with restricted permissions.

检查方式

审计方法: 人工审核

此项建议无法自动检查。当您传入 --include-manual 时,扫描结果会列出该项并附带这些说明。

Run SELECT name, setting FROM pg_settings WHERE name IN ('external_pid_file','unix_socket_directories','shared_preload_libraries','dynamic_library_path','local_preload_libraries','session_preload_libraries'); and confirm each value is expected and the referenced files/directories are writable only by postgres/root.

修复方式

修复方法: 操作指南或基础设施补丁

Correct unexpected values in postgresql.conf, restrict permissions on the referenced paths, and restart PostgreSQL.

属性

操作系统
任意
标签
postgresdatabaseconfigurationmanual
参考
CIS PostgreSQL 18 Benchmark v1.0.0 - 8.3 Ensure miscellaneous configuration settings are correct