SV-280934r1165157_rule
V-280934
SRG-OS-000366-GPOS-00153
RHEL-10-001050
CAT I
10
Configure RHEL 10 software repositories defined in "/etc/yum.repos.d/" to have "gpgcheck" enabled with the following command:
$ sudo sed -i 's/gpgcheck\s*=.*/gpgcheck=1/g' /etc/yum.repos.d/*
Verify RHEL 10 software repositories defined in "/etc/yum.repos.d/" have been configured with "gpgcheck" enabled with the following command:
$ sudo grep -w gpgcheck /etc/yum.repos.d/*.repo | more
gpgcheck = 1
If "localpkg_gpgcheck" is not set to "1", or if the option is missing or commented out, ask the system administrator how the GPG signatures of local software packages are being verified.
If no process to verify GPG signatures has been approved by the organization, this is a finding.
V-280934
False
RHEL-10-001050
Verify RHEL 10 software repositories defined in "/etc/yum.repos.d/" have been configured with "gpgcheck" enabled with the following command:
$ sudo grep -w gpgcheck /etc/yum.repos.d/*.repo | more
gpgcheck = 1
If "localpkg_gpgcheck" is not set to "1", or if the option is missing or commented out, ask the system administrator how the GPG signatures of local software packages are being verified.
If no process to verify GPG signatures has been approved by the organization, this is a finding.
M
5733