SV-269292r1050174_rule
V-269292
SRG-OS-000480-GPOS-00227
ALMA-09-024000
CAT II
10
Given the output from the check command, identify the package that provides the output and reinstall it.
The following trimmed example output shows a package that has failed verification, been identified, reinstalled, and then passed re-verification:
$ rpm -Va --noconfig | awk '$1 ~ /..5/ && $2 != "c"'
S.5....T. /usr/bin/tar
$ dnf whatprovides /usr/bin/tar
tar-2:1.34-6.el9_1.x86_64 : GNU file archiving program
$ dnf reinstall tar
$ rpm -Va --noconfig | awk '$1 ~ /..5/ && $2 != "c"'
[no output]
The following command will list which files on the system have file hashes different from what is expected by the RPM database:
$ rpm -Va --noconfig | awk '$1 ~ /..5/ && $2 != "c"'
If there is an output, this is a finding.
V-269292
False
ALMA-09-024000
The following command will list which files on the system have file hashes different from what is expected by the RPM database:
$ rpm -Va --noconfig | awk '$1 ~ /..5/ && $2 != "c"'
If there is an output, this is a finding.
M
5664