How do I enable SELinux when booting from a CD/DVD?
Posted
by
JeffG
on Server Fault
See other posts from Server Fault
or by JeffG
Published on 2011-03-03T21:34:25Z
Indexed on
2011/03/03
23:26 UTC
Read the original article
Hit count: 364
I have a bootable DVD which boots the same Kernel as the Hard Drive (which uses SELinux). I have copied /etc/selinux and all the kernel modules to my ramdisk, and have tried both selinux=1
and selinux 1
as Kernel boot parameters.
After the system boots, I check dmesg:
% dmesg | grep -i selinux
Kernel command line: initrd=idrd.img ramdisk_size=110476 selinux=1
SELinux: Initializing.
SELinux: Starting in permissive mode
selinux_register_security: Registering secondary module capability
SElinux: Registering netfilter hooks
But SELinux isn't running:
% /usr/sbin/getenforce
Disabled
% /usr/sbin/setenforce 1
/usr/sbin/setenforce: SELinux is disabled
/var/log/messages does not hold any clues. /proc/kmsg also has nothing
© Server Fault or respective owner