Tuesday, March 25, 2014

Linux -- Rhel 6 panics on boot -- selinux problem

When booting the RHEL 6.5 , with kernel 2.6.32-431 or 2.6.32-279 , we have faced a panic issue
as follows;

Kernel panic - not syncing: Attempted to kill init!
Pid: 1, comm: init not tainted 2.6.32-279.el6.x86_64 #1
Call Trace
  [<ffffffff814fd11a>] ? panic+0xa0/0x168
  [<ffffffff81070db2>] ? do_exit+0862/0x870
  [<ffffffff8117ca75>] ? fput+0x25/0x30
  [<ffffffff81070c38>] ? do_group_exit+0x17/0x20
  [<ffffffff81070cc7>] ? sys_exit_group+0x17/0x20
  [<ffffffff8100b0f2>] ? system_call_fastpath+0x16/0x1b



This seems to be document in Redhat Support: https://access.redhat.com/site/solutions/232483

For the solution, we booted Redhat with rescue cd and corrected the selinux configuration , as it was corrupted.. SELINUXTYPE was set to DISABLED..

An alternative solution could be using command line option in grub menu;

press 'e' to edit the command
press 'e' to edit kernel command
at the end of the line write
3 selinux=0
3 is runlevel 3
and selinux=0 -> disables selinux permanentaly..

1 comment :