TMA-POSTGRES-1.3
Ensure systemd Service Files Are Enabled
低レベル 1自動postgres
説明
Confirm, and correct if necessary, the PostgreSQL systemd service is enabled. Passes when at least one postgresql* systemd service unit is enabled.
チェック方法
監査方法: シェルコマンド
shell
out=$(systemctl list-unit-files --type=service --no-legend 'postgresql*' 2>/dev/null) || exit 1; printf '%s\n' "$out" | awk '$2=="enabled"{e=1} END{print e?"enabled":"not-enabled"}'- 期待される出力
enabled
修正方法
修正方法: ガイダンスまたは IaC パッチ
Enable the PostgreSQL unit for the default target, e.g. systemctl enable postgresql-18 (PGDG) or systemctl enable postgresql (Debian/Ubuntu), then confirm with systemctl is-enabled.
プロパティ
- オペレーティングシステム
- すべて
- タグ
- postgresdatabaseservice
- 参照
- CIS PostgreSQL 18 Benchmark v1.0.0 - 1.3 Ensure systemd Service Files Are Enabled
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target postgres