-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PCRE_ERROR_MATCHLIMIT in PASS_MAX_DAYS
Fix memory limit match error when scanning an actual /etc/login.defs file, which is much larger than the test files. Removed the single line behavior and added tests to check whether it is mathing the last PASS_MAX_DAYS.
- Loading branch information
Showing
3 changed files
with
12 additions
and
1 deletion.
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
6 changes: 6 additions & 0 deletions
6
...ons/password_expiration/accounts_maximum_age_login_defs/tests/correct_stig_double.pass.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
# profiles = xccdf_org.ssgproject.content_profile_stig | ||
|
||
rm -f /etc/login.defs | ||
echo "PASS_MAX_DAYS 60" > /etc/login.defs | ||
echo "PASS_MAX_DAYS 30" >> /etc/login.defs |
6 changes: 6 additions & 0 deletions
6
...s/password_expiration/accounts_maximum_age_login_defs/tests/incorrect_stig_double.fail.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
# profiles = xccdf_org.ssgproject.content_profile_stig | ||
|
||
rm -f /etc/login.defs | ||
echo "PASS_MAX_DAYS 60" > /etc/login.defs | ||
echo "PASS_MAX_DAYS 120" >> /etc/login.defs |