SV-259169r935411_rule
V-259169
SRG-APP-000091-DB-000066
VCPG-80-000007
CAT II
10
A script is included with vCenter to generate a PostgreSQL STIG configuration.
At the command prompt, run the following commands:
# chmod +x /opt/vmware/vpostgres/current/bin/vmw_vpg_config/vmw_vpg_config.py
# /opt/vmware/vpostgres/current/bin/vmw_vpg_config/vmw_vpg_config.py --action stig_enable --pg-data-dir /storage/db/vpostgres
# chmod -x /opt/vmware/vpostgres/current/bin/vmw_vpg_config/vmw_vpg_config.py
Restart the PostgreSQL service by running the following command:
# vmon-cli --restart vmware-vpostgres
At the command prompt, run the following commands:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW pgaudit.log_catalog;"
# /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW pgaudit.log;"
# /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW pgaudit.log_parameter;"
# /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW pgaudit.log_statement_once;"
# /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW pgaudit.log_level;"
If "pgaudit.log_catalog" is not set to "on", this is a finding.
If "pgaudit.log" is not set to "all, -misc", this is a finding.
If "pgaudit.log_parameter" is not set to "on", this is a finding.
If "pgaudit.log_statement_once" is not set to "off", this is a finding.
If "pgaudit.log_level" is not set to "log", this is a finding.
V-259169
False
VCPG-80-000007
At the command prompt, run the following commands:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW pgaudit.log_catalog;"
# /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW pgaudit.log;"
# /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW pgaudit.log_parameter;"
# /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW pgaudit.log_statement_once;"
# /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW pgaudit.log_level;"
If "pgaudit.log_catalog" is not set to "on", this is a finding.
If "pgaudit.log" is not set to "all, -misc", this is a finding.
If "pgaudit.log_parameter" is not set to "on", this is a finding.
If "pgaudit.log_statement_once" is not set to "off", this is a finding.
If "pgaudit.log_level" is not set to "log", this is a finding.
M
5570