[CentOS-docs] edit proposal to /HowTos/SELinux - how to relabel filesystem

Bennett Haselton

bennett at peacefire.org
Wed Jan 4 17:41:10 UTC 2012


Following the steps under "Contribute to the Wiki" at
http://wiki.centos.org/Contribute#head-42b3d8e26400a106851a61aebe5c2cca54dd79e5

My Wiki name is BennettHaselton.  I wanted to edit this paragraph:

"Note: When switching from Disabled to either Permissive or Enforcing 
mode, it is highly recommended that the system be rebooted and the 
filesystem relabeled."

to add:

"This can be accomplished with the commands
touch /.autorelabel
reboot
If the file /.autorelabel exists at boot time, SELinux performs a 
filesystem relabel and then deletes /.autorelabel "

Since the current page says to relabel the filesystem but doesn't say 
how to do it; the instructions are easy to find elsewhere on the web, 
but might as well put it on that page too.

Bennett



More information about the CentOS-docs mailing list