Skip to contentSkip to conversation

Kernel Panic after Kernel Upgrade

DISCUSSION Moises Mojica 2 participants 3 messages Jun 7, 2006 – Jun 12, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi,

I have a newly installed version of SELinux (2.6..9-34.EL) which works fine but I also have a need to develop an NATH323 gatekeeper solution and in order to accomplish this I must upgrade the kernel to 2.6.16.20 and enable the NATH323 module but after compiling and installing the new kernel I am unable to boot from it do to a kernel panic.

I followed the steps outlined in the document at
http://nath323.sourceforge.net/ but still I can only boot from the original kernel (2.6.9-34.EL).

What am I missing? Can someone assist?

*Kernel Panic Message:*

Ext3-fs: mounted filesystem with ordered data mode.

Switching to new root.

Enforcing mode requested but no policy loaded. Halting now.

Kernel panic - not syncing: Attempted to kill init!

*grub.conf:*

# grub.conf generated by anaconda

#

# Note that you do not have to rerun grub after making changes to this file

# NOTICE: You have a /boot partition. This means that

# all kernel and initrd paths are relative to /boot/, eg.

# root (hd0,0)

# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00

# initrd /initrd-version.img

#boot=/dev/sda

default=1

timeout=5

splashimage=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

title Red Hat Enterprise Linux ES (2.6.16.20)

       root (hd0,0)

       kernel /vmlinuz-2.6.16.20 ro root=/dev/VolGroup00/LogVol00

       initrd /initrd-2.6.16.20.img

title Red Hat Enterprise Linux ES (2.6.9-34.EL)

       root (hd0,0)

       kernel /vmlinuz-2.6.9-34.EL ro root=/dev/VolGroup00/LogVol00

       initrd /initrd-2.6.9-34.EL.img

[root@gnugk ~]#

Signature · 10 lines
Moisés Mojica, Jr.
Sr. Systems Engineer III, R&D

GlowPoint, Inc.
973-391-2041 Office
201-736-6316 Mobile
781-839-3085 Video

"It's not the strongest of the species, nor the most intelligent,
that survive; it's the one most responsive to change."
#1 lore raw
Quoted 8 lines · Moises Mojica

Hi,

I have a newly installed version of SELinux (2.6..9-34.EL) which works fine but I also have a need to develop an NATH323 gatekeeper solution and in order to accomplish this I must upgrade the kernel to 2.6.16.20 and enable the NATH323 module but after compiling and installing the new kernel I am unable to boot from it do to a kernel panic.

That is because 2.6.16 expects a newer SELinux policy version than what is shipped in RHEL4, so /sbin/init is failing to load policy and aborting. So if you want to run with SELinux enabled using that newer kernel, you need to upgrade your policy toolchain (libsepol/checkpolicy) and policy.

Signature · 8 lines
Stephen Smalley
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.
#2 lore raw
In reply to Moises Mojica

Hi Stephen,

Thank you for your response on this issue.

Can you point me to an official seLinux document that I can use to learn more about how seLinux works and how to create/modify the policy and upgrade the policy toolchain?

--Moises

Quoted 101 lines · Moises Mojica

Hi,

I have a newly installed version of SELinux (2.6..9-34.EL) which works fine but I also have a need to develop an NATH323 gatekeeper solution and in order to accomplish this I must upgrade the kernel to 2.6.16.20 and enable the NATH323 module but after compiling and installing the new kernel I am unable to boot from it do to a kernel panic.

I followed the steps outlined in the document at
http://nath323.sourceforge.net/ but still I can only boot from the original kernel (2.6.9-34.EL).

What am I missing? Can someone assist?

*Kernel Panic Message:*

Ext3-fs: mounted filesystem with ordered data mode.

Switching to new root.

Enforcing mode requested but no policy loaded. Halting now.

Kernel panic - not syncing: Attempted to kill init!

*grub.conf:*

# grub.conf generated by anaconda

#

# Note that you do not have to rerun grub after making changes to this file

# NOTICE: You have a /boot partition. This means that

# all kernel and initrd paths are relative to /boot/, eg.

# root (hd0,0)

# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00

# initrd /initrd-version.img

#boot=/dev/sda

default=1

timeout=5

splashimage=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

title Red Hat Enterprise Linux ES (2.6.16.20)

        root (hd0,0)

        kernel /vmlinuz-2.6.16.20 ro root=/dev/VolGroup00/LogVol00

        initrd /initrd-2.6.16.20.img

title Red Hat Enterprise Linux ES (2.6.9-34.EL)

        root (hd0,0)

        kernel /vmlinuz-2.6.9-34.EL ro root=/dev/VolGroup00/LogVol00

        initrd /initrd-2.6.9-34.EL.img

[root@gnugk ~]#

--
Moisés Mojica, Jr.
Sr. Systems Engineer III, R&D

GlowPoint, Inc.
973-391-2041 Office
201-736-6316 Mobile
781-839-3085 Video

"It's not the strongest of the species, nor the most intelligent, that survive; it's the one most responsive to change."