New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mount[] platform and use it for /tmp and /var/tmp mount option rules #10431
Add mount[] platform and use it for /tmp and /var/tmp mount option rules #10431
Conversation
a new templated platform mount[] The platform conditionals now check for the /etc/fstab entries in addition to active mountpoint presence. Also the name better reflects the nature of the check.
and mount_option_var_tmp* rules This restores previously removed 'not applicable' behavior of these rules for systems where mountpoints have not been configured.
e7ec398
to
442aa3e
Compare
|
Code Climate has analyzed commit 442aa3e and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 52.4% (0.0% change). View more on Code Climate. |
|
Please also propose this to the stabilization branch as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks!
Co-authored-by: Evgeny Kolesnikov <ekolesni@redhat.com>
|
Before the fix: After the fix: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ffc50a9
into
ComplianceAsCode:master
Description:
This is a continuation on #10295 and, at the same time, a fix for #10389.
Rationale:
The name of the platform is
mount[]insteadpartition[]because it better reflects the nature of the applicability check.It is a tradeoff and a temporary solution until we refactor mount and mount_option related rules.
Fixes mount_option_*_tmp_* is pass when should be not applicable on RHEL8/RHEL9 #10389.
Review Hints:
findmnt --kernel || findmnt --fstab.