forked from OpenSCAP/openscap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use and return canonical paths in rpmverifyfile probe
This is done to prevent false positives in implementation of rules file_permissions_unauthorized_suid and file_permissions_unauthorized_sgid proposed in ComplianceAsCode in ComplianceAsCode/content#4648 caused by inconsistent symlink usage in rpmdb. Also improves logic when an exact file path is defined in rpmverifyfile_object we don't have to iterate over all RPMs in the rpmdb but we query the rpmdb directly.
- Loading branch information
Showing
1 changed file
with
35 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters