Why the limit through telnet is not the same if selinux is enabled

Solution Verified - Updated -

Issue

  • The limits seen after a login through telnet is not the same if selinux is enabled or not:

    • Selinux disabled:
    [root@rhel610 ~]# telnet 127.0.0.1
    Trying 127.0.0.1...
    Connected to 127.0.0.1.
    Escape character is '^]'.
    Red Hat Enterprise Linux Server release 6.10 (Santiago)
    Kernel 2.6.32-754.el6.x86_64 on an x86_64
    rhel610 login: test
    Password:
    Last login: Fri Oct 18 15:28:06 from localhost
    [test@rhel610 ~]$
    [test@rhel610 ~]$ cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 6.10 (Santiago)
    [test@rhel610-storage ~]$ ulimit -n
    4096
    
    • Selinux enabled:
    [root@rhel610 ~]# ssh test@127.0.0.1
    test@127.0.0.1's password:
    Last login: Fri Oct 18 15:27:07 2019 from localhost
    [test@rhel610-storage ~]$ cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 6.10 (Santiago)
    [test@rhel610-storage ~]$ ulimit -n
    1024
    

Environment

  • Red Hat Enterprise Linux 6
  • telnet
  • selinux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content