-
Notifications
You must be signed in to change notification settings - Fork 718
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
Bash remediation of mount_option template incorrectly handles commented lines #10526
Comments
I think that this PR might have fixed this issue: |
Unfortunately, the bug is still reproducible using the scenario above. |
this test already exists in |
@dodys the test scenario you mention tests something else. The test scenario in the PR dewscription puts there a correct line and comments it out, then it adds wrong line. The test scenario you mention adds correct line, comments it out, then it adds correct line again. |
Description of problem:
Recently merged PR introduces a change to OVAL which can correctly process also commented lines in /etc/fstab. The PR is #10518
Unfortunately, the Bash remediation does not work (produces error) in case the /etc/fstab contains a commented line which is correct, and this line is followed by an uncommented incorrect line.
SCAP Security Guide Version:
master as of cad3f18
Operating System Version:
RHEL 8
Steps to Reproduce:
Actual Results:
The created test scenario makes the scan finish with an error.
Expected Results:
The scenario should be passing.
Additional Information/Debugging Steps:
Ansible remediation works correctly.
The text was updated successfully, but these errors were encountered: