Skip to content

Commit 74bf7d7

Browse files
author
T.O. Radzy Radzykewycz
committed
[bugfix] Allow multiple maxlogin specifications in /etc/security/limits.d #1329
Signed-off-by: T.O. Radzy Radzykewycz <radzy@windriver.com>
1 parent fb725cc commit 74bf7d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)