Skip to content

Commit f7e5127

Browse files
authored
Merge pull request #1487 from radzy/bugfix-1329-rainaeju
[bugfix] Allow multiple maxlogin specifications in /etc/security/limi…
2 parents 95f3ff3 + 74bf7d7 commit f7e5127

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

shared/oval/accounts_max_concurrent_login_sessions.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<ind:path>/etc/security/limits.d</ind:path>
4444
<ind:filename operation="pattern match">^.*\.conf$</ind:filename>
4545
<ind:pattern operation="pattern match">^[\s]*\*[\s]+(?:(?:hard)|(?:-))[\s]+maxlogins[\s]+(\d+)\s*$</ind:pattern>
46-
<ind:instance datatype="int">1</ind:instance>
46+
<ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
4747
</ind:textfilecontent54_object>
4848

4949
<ind:textfilecontent54_state id="state_maxlogins" version="1">
@@ -54,7 +54,7 @@
5454
<ind:path>/etc/security/limits.d</ind:path>
5555
<ind:filename operation="pattern match">^.*\.conf$</ind:filename>
5656
<ind:pattern operation="pattern match">^[\s]*\*[\s]+(?:(?:hard)|(?:-))[\s]+maxlogins</ind:pattern>
57-
<ind:instance datatype="int">1</ind:instance>
57+
<ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
5858
</ind:textfilecontent54_object>
5959

6060
<external_variable comment="maximum number of concurrent logins per user" datatype="int" id="var_accounts_max_concurrent_login_sessions" version="1" />

0 commit comments

Comments
 (0)