Skip to content

Commit

Permalink
Remove duplicate oval check
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmcanonical committed Jan 21, 2025
1 parent cb83a2f commit 1e64c3d
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
comment="At least one pwhistory line exists"/>
<criterion test_ref="{{{ rule_id }}}_test_password_pam_pwhistory_use_authtok"
comment="use_authtok is configured in pam pwhistory in common_password file"/>
<criterion test_ref="{{{ rule_id }}}_test_password_pam_pwhistory_without_use_authtok"
comment="use_authtok is configured not in pam pwhistory in common_password file"/>
</criteria>
</definition>

Expand Down Expand Up @@ -59,17 +57,4 @@
<ind:subexpression operation="pattern match">^[^#\n\r]*pam_pwhistory\.so.*$</ind:subexpression>
</ind:textfilecontent54_state>

<!-- Test to check if use_authtok is not configured in the first password line containing pam_pwhistory.so -->
<ind:textfilecontent54_test id="{{{ rule_id }}}_test_password_pam_pwhistory_without_use_authtok" version="1"
check="all" check_existence="all_exist"
comment="use_authtok is configured not in pam pwhistory on top of stack in common_password file">
<ind:object object_ref="{{{ rule_id }}}_obj_without_use_authtok" />
</ind:textfilecontent54_test>

<ind:textfilecontent54_object id="{{{ rule_id }}}_obj_without_use_authtok" version="1">
<ind:filepath>{{{ accounts_password_pam_file }}}</ind:filepath>
<ind:pattern operation="pattern match">^[ \t]*password[ \t]+[^#\n\r]*pam_pwhistory\.so.*$</ind:pattern>
<ind:instance datatype="int" operation="equals">1</ind:instance>
</ind:textfilecontent54_object>

</def-group>

0 comments on commit 1e64c3d

Please sign in to comment.