How to autorelabel SELinux for an entire file system
Issue
- An autorelabel for SELinux fails:
/.autorelabelis detected correctly butfixfilesfails silently. - How to relabel a file system that has a large amount of SELinux errors
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- SELinux is disabled
/etc/selinux/configis updated to setSELINUX=enforcingon the next boot/.autorelabelexists to force a relabel on the next boot
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
