mcstransd does not work after enabling hidepid on RHEL 7

Solution Verified - Updated -

Issue

  • How to configure mcstrans to work with hidepid mount options for /proc on Red Hat Enterprise Linux 7.

  • The mcstransd service reports the following errors in the system message logs:

    mcstransd[xxxx]: Failed to get context of client process (pid=xx)
    mcstransd[xxxx]: Servicing of request failed for fd (x)
    
  • The mcstransd service does not translate SELinux contexts even when it is running:

    # ls -Zd /tmp
    drwxrwxrwt. root root system_u:object_r:tmp_t:SystemLow    /tmp
    # mount -o remount,hidepid=2,gid=10 /proc
    # ls -Zd /tmp
    drwxrwxrwt. root root system_u:object_r:tmp_t:s0    /tmp
    
  • The mcstransd service has no effect even if the client user is in the hidepid / gid group.

Environment

  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.