booting selinux rh9
Guys,
I have been having a great time setting up selinux the latest 2.4.21-selinux1 version on rh9.
However, once again, I cannot get past a certain problem, at login time after rebooting, I try to login as root, and it says it cannot determine a security context for me, and do I wish to specify one. I say y (which is default), I type sysadm_r and type of sysadm_t (I also tried the user_r and user_t as well), and it responds with invalid security context, and I try again.
So I reboot into selinux single mode, and this is ok, I check the the selinuxfs has been mounted (of which it has) and all the directories seem to be there. As a note, my context at this point is kernel_t.
Does anyone know what I might have done wrong?
I also believe that the initrd I created using the one supplied with the patched differences in the download from nsa creates a valid linuxrc file of which I have checked, but are you supposed to see the output of the initrd's echo statements at boot time, because I dont? ( ie : echo Loading Policy)
Cheers
and thanx in advance
Jason
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 5 lines · Jason
However, once again, I cannot get past a certain problem, at login time after rebooting, I try to login as root, and it says it cannot determine a security context for me, and do I wish to specify one. I say y (which is default), I type
sysadm_rand type ofsysadm_t(I also tried theuser_randuser_tas well), and it responds with invalid security context, and I try again.
This implies that the policy wasn't loaded or doesn't contain an entry for root.
Quoted 3 lines
So I reboot into selinux single mode, and this is ok, I check the the selinuxfs has been mounted (of which it has) and all the directories seem to be there. As a note, my context at this point is
kernel_t.
system_u:system_r:kernel_t or just 'kernel'?
Quoted 5 lines
Does anyone know what I might have done wrong?
I also believe that the initrd I created using the one supplied with the patched differences in the download from nsa creates a valid linuxrc file of which I have checked, but are you supposed to see the output of the initrd's echo statements at boot time, because I dont? ( ie : echo Loading Policy)
You should see messages from the kernel like:
VFS: Mounted root (ext2 filesystem).
security: 4 users, 5 roles, 274 types
security: 30 classes, 13949 rules
SELinux: Completing initialization.
SELinux: Setting up existing superblocks.
SELinux: initialized (dev , type selinuxfs), uses genfs_contexts
SELinux: initialized (dev ram0, type ext2), uses xattr
...
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.