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 10
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 5
- SELinux disabled and
/etc/selinux/configbeing updated to setSELINUX=enforcingon the next boot - File
/.autorelabelexists to force a relabel on the next boot
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.