Skip to content

Commit

Permalink
Minor fix for pam_faillock regex on Ubuntu (5.4.2)
Browse files Browse the repository at this point in the history
- Fixed to allow trailing whitespaces and comments.
  • Loading branch information
mpurg committed Oct 16, 2023
1 parent 916401d commit e605913
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<constant_variable id="var_accounts_passwords_pam_faillock_deny_pam_faillock_account_regex"
datatype="string" version="1"
comment="regex to identify pam_faillock.so entry in account section of pam files">
<value>^\s*account\s+required\s+pam_faillock\.so$</value>
<value>^\s*account\s+required\s+pam_faillock\.so\s*(#.*)?$</value>
</constant_variable>

<constant_variable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<constant_variable id="var_accounts_passwords_pam_faillock_interval_pam_faillock_account_regex"
datatype="string" version="1"
comment="regex to identify pam_faillock.so entry in account section of pam files">
<value>^\s*account\s+required\s+pam_faillock\.so$</value>
<value>^\s*account\s+required\s+pam_faillock\.so\s*(#.*)?$</value>
</constant_variable>

<constant_variable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<constant_variable id="var_accounts_passwords_pam_faillock_unlock_time_pam_faillock_account_regex"
datatype="string" version="1"
comment="regex to identify pam_faillock.so entry in account section of pam files">
<value>^\s*account\s+required\s+pam_faillock\.so$</value>
<value>^\s*account\s+required\s+pam_faillock\.so\s*(#.*)?$</value>
</constant_variable>

<constant_variable
Expand Down

0 comments on commit e605913

Please sign in to comment.