TMAegis
Thêm quy tắc cho postgres

TMA-POSTGRES-8.3

Ensure miscellaneous configuration settings are correct

ThấpCấp 1Xem xét thủ côngpostgres

Mô tả

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.

Cách kiểm tra

Phương pháp kiểm tra: Xem xét thủ công

Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --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.

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

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

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
postgresdatabaseconfigurationmanual
Tham chiếu
CIS PostgreSQL 18 Benchmark v1.0.0 - 8.3 Ensure miscellaneous configuration settings are correct