PDA

View Full Version : SELINUX activation problem


kaniehof
25th May 2006, 09:33 AM
Hi,

I have FC5 installed and it work (worked) perfectly. I use the systemas mailserver, webserver.
I had it all installed with SELINUX disabled, thinking that I could enable it after installation.

I activated SELINUX and the system needed a reboot for the relabeling. During the reboot, the system hangs, and I can only reboot again which is no use or log in as root and repair my filesystem.
The filesystem is in READ-ONLY at this point.
I can't do anything, fixfiles and so on need to have a writeable filesystem. How can I proceed?
Your help is greatly appreciated....

Koen Niehof

pete_1967
25th May 2006, 09:47 AM
If and when you enable SELinux, during the reboot, it has to index and label your hard-drive. Depending on the size of the drive and amount of files, it can take quite long time before it gets done during which it looks like boot process has hung up. If you pay attention to system messages you will see announcement that system is being relabelled though.

Jonas Axelsson
25th May 2006, 10:25 AM

I had the same problem last night.

Me problem in detail (http://forum.fedoraforum.org/showthread.php?t=110791)

Solution (you might want to replace /mnt/ with /dev/):
Log in as root when promted to do so.
Remount the partition.
mount -o remount,rw /mnt/<partitionname>

kaniehof
25th May 2006, 10:56 AM
Thanks.. this is really useful.

At the moment the system is relabeling... and I guess then it should all work again.

kaniehof
25th May 2006, 11:04 AM
Hmm... it worked... and I can login again.
Though my Dovecot IMAP server doesn't seem to work....

Any ideas on that?

pete_1967
25th May 2006, 11:50 AM
You need to label it correctly for it to work. Check error logs and var/log/messages which parts of it SELinux prevents from working.

You probably find detailed instructions how to enable it with SELinux in their support forums.

Also check Fedora and RH documentation for SELinux.