I installed Centos 5.5 and by deafult SElinux was disabled. I did changes in /etc/selinux/config and now it looks like this.

SELINUX=enforcing
SELINUXTYPE=targeted
SETLOCALDEFS=0

and rebooted the system. But even after the reboot when I do check the sestatus it shows disable. where I'm doing a mistake do I need to change any thing else?

EDIT :
I'm Using Rackspace Cloud server

link|improve this question

feedback

2 Answers

up vote 3 down vote accepted

You need to be running a kernel that supports SELinux. Most VPS providers use one that doesn't, since no one has cared enough to write SELinux rules that allow their VPS tools/mechanism to work.

Another possibility is that one or more kernel options are being passed via the bootloader which disable it. Check your bootloader configuration.

link|improve this answer
To check current kernel parameters: cat /proc/cmdline – LatinSuD Oct 14 '10 at 8:29
feedback

It seems that if you create a support ticket with Rackspace they can enable SELinux support without using a custom kernel. I suspect they keep alternate kernels available and they simply switch it over on their end.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.