Disable SELinux on CentOS 5 and remove the security context associated with files

Edit /etc/sysconfig/selinux and set SELINUX=disabled

Reboot the machine and login as root

Then from the root folder run the following command

find . -print0 |xargs -0 -n 1 setfattr -h -x security.selinux