Skip to content

Commit

Permalink
Fix for MITRE Issue 13
Browse files Browse the repository at this point in the history
Allow variable white space in regex
See #13

Signed-off-by: Mark-Kozak <[email protected]>
  • Loading branch information
Mark-Kozak authored and aaronlippold committed Dec 7, 2023
1 parent f7273c3 commit bb49e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controls/AMZL-02-710343.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
end
else
describe command("grep -ir 'timestamp_timeout' /etc/sudoers /etc/sudoers.d").stdout.strip do
it { should match /^[^#].*Defaults timestamp_timeout=\d/ }
it { should match /^[^#].*Defaults\s*timestamp_timeout=\d/ }
it { should_not match /\n/ }
end
end
Expand Down

0 comments on commit bb49e81

Please sign in to comment.