RHEL8: Commands hang when accessing a NFS share when SELinux is enabled

Solution Verified - Updated -

Issue

  • Performing a # ls on a NFSv4 share hangs for 25 seconds when SELinux is in enforcing mode or if systemd is a resolvable database in /etc/nsswitch.conf

Environment

  • Red Hat Enterpise Linux 8
  • SELinux in enforcing mode
  • systemd is present in /etc/nsswitch.conf for the passwd database

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