Recursive SElinux fcontext equivalence fails

Solution Verified - Updated -

Issue

  • Consecutive bind mounts are used to mount /data to /lvuser and /lvuser/home to /home
  • SElinux file contexts are set by using substitutions
  • semanage fcontext -a -e /home /data/home
  • semanage fcontext -a -e /data /lvuser
  • Each run of restorecon will relabel the files multiple times

Environment

  • Red Hat Enterprise Linux
  • Bind mounts
  • SElinux

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.