You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This control is failing due to more white space in the regex than allowed for. Adding a * between Defaults and timestamp gets the control to pass.
Change: it { should match /^[^#].*Defaults timestamp_timeout=\d/ }
To: it { should match /^[^#].*Defaults *timestamp_timeout=\d/ }
Editing the sudoers file to remove the additional spaces would also work, but that is unnecessary work that would need to be repeated for every new image. Fixing the control test is preferred.
The text was updated successfully, but these errors were encountered:
Mark-Kozak
added a commit
to Mark-Kozak/amazon-linux-2-stig-ready-baseline
that referenced
this issue
Dec 6, 2023
This control is failing due to more white space in the regex than allowed for. Adding a * between Defaults and timestamp gets the control to pass.
Change:
it { should match /^[^#].*Defaults timestamp_timeout=\d/ }
To:
it { should match /^[^#].*Defaults *timestamp_timeout=\d/ }
Editing the sudoers file to remove the additional spaces would also work, but that is unnecessary work that would need to be repeated for every new image. Fixing the control test is preferred.
The text was updated successfully, but these errors were encountered: