Kernel panic when using refpolicy
Hi,
I'm running RHEL5. I downloaded refpolicy-20070629.tar.bz2 and selinux-refpolicy-sources-20070629-1.noarch.rpm and installed the files for the reference policy. When rebooting the system there was a fatal error -
Kernel panic - not syncing: Fatal exception.
There were many unknown Boolean errors for libsepol.load.booleans and there was the following error -
libsepol.sepol_genbools: error while reading /etc/selinux/refpolicy/Booleans
It looks like ifconfig was running when the kernel panic occurred. To recover booted into single-user mode and changed the SELINUXTYPE in the file /etc/selinux/config from refpolicy to targeted. I can easily repeat the problem by using the SELinux Management Tool to change the System Default Policy Type from targeted to refpolicy and rebooting. I've looked at all of the documentation to see if I missed a step or downloaded an incorrect file but I can't find anything. Can anyone give me some insight into what the problem may be? Thanks in advance for a response.
Kim
--
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.
going to want more of the panic information. Whole boot output would be great. That's just the generic death message. My first guess is that you are enforcing, but that it can't actually find the binary policy to install at boot time.
Before the panic did you get a message about 'enforcing and can't find
policy?' Sounds like the most likely cause. Do have a policy.21 in/etc/selinux/refpolicy/policy/policy.21
-Eric
Quoted 21 lines · Kim Lawson-Jenkins
Hi,
I'm running RHEL5. I downloaded refpolicy-20070629.tar.bz2 and selinux-refpolicy-sources-20070629-1.noarch.rpm and installed the files for the reference policy. When rebooting the system there was a fatal error -
Kernel panic - not syncing: Fatal exception.There were many unknown Boolean errors for libsepol.load.booleans and there was the following error -
libsepol.sepol_genbools: error while reading/etc/selinux/refpolicy/BooleansIt looks like ifconfig was running when the kernel panic occurred. To recover booted into single-user mode and changed the SELINUXTYPE in the file
/etc/selinux/configfrom refpolicy to targeted. I can easily repeat the problem by using the SELinux Management Tool to change the System Default Policy Type from targeted to refpolicy and rebooting. I've looked at all of the documentation to see if I missed a step or downloaded an incorrect file but I can't find anything. Can anyone give me some insight into what the problem may be? Thanks in advance for a response.
Quoted 8 lines
Kim
--
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.
--
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 9 lines · Kim Lawson-Jenkins
I'm running RHEL5. I downloaded refpolicy-20070629.tar.bz2 and selinux-refpolicy-sources-20070629-1.noarch.rpm and installed the files for the reference policy. When rebooting the system there was a fatal error -
Kernel panic - not syncing: Fatal exception.There were many unknown Boolean errors for libsepol.load.booleans and there was the following error -
libsepol.sepol_genbools: error while reading/etc/selinux/refpolicy/Booleans
Quoted 8 lines
It looks like ifconfig was running when the kernel panic occurred. To recover booted into single-user mode and changed the SELINUXTYPE in the file
/etc/selinux/configfrom refpolicy to targeted. I can easily repeat the problem by using the SELinux Management Tool to change the System Default Policy Type from targeted to refpolicy and rebooting. I've looked at all of the documentation to see if I missed a step or downloaded an incorrect file but I can't find anything. Can anyone give me some insight into what the problem may be? Thanks in advance for a response.
You set TYPE=targeted, not TYPE=targeted-mcs, right? If so, I suspect that you've hit the kernel bug in RHEL5 that happens when the SELinux MLS support is disabled. Loading a MCS policy turns on the MLS support. In fact the RHEL5 targeted policy is targeted-mcs, in refpolicy terms.
Signature · 9 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- 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.
Chris (and Eric & Brian),
I was running in permissive mode and yes, I did have TYPE=targeted, not TYPE=targeted-mcs. I'll make the change. Thanks everyone for the responses.
Kim
-----Original Message-----
From: Christopher J. PeBenito [mailto:[email protected]]
Sent: Friday, September 07, 2007 12:44 PM
To: Kim Lawson-Jenkins
Cc: [email protected]
Subject: Re: Kernel panic when using refpolicy
Quoted 2 lines · Kim Lawson-Jenkins
I'm running RHEL5. I downloaded refpolicy-20070629.tar.bz2 and selinux-refpolicy-sources-20070629-1.noarch.rpm and installed the files
for
Quoted 4 lines
the reference policy. When rebooting the system there was a fatal error -
Kernel panic - not syncing: Fatal exception.There were many unknown Boolean errors for libsepol.load.booleans and
there
Quoted 2 lines
was the following error -
libsepol.sepol_genbools: error while reading
/etc/selinux/refpolicy/Booleans
Quoted 3 lines
It looks like ifconfig was running when the kernel panic occurred. To recover booted into single-user mode and changed the SELINUXTYPE in the
file
Quoted 3 lines
/etc/selinux/configfrom refpolicy to targeted. I can easily repeat the problem by using the SELinux Management Tool to change the System Default Policy Type from targeted to refpolicy and rebooting. I've looked at all
of
Quoted 1 line
the documentation to see if I missed a step or downloaded an incorrect
file
Quoted 2 lines
but I can't find anything. Can anyone give me some insight into what the problem may be? Thanks in advance for a response.
You set TYPE=targeted, not TYPE=targeted-mcs, right? If so, I suspect that you've hit the kernel bug in RHEL5 that happens when the SELinux MLS support is disabled. Loading a MCS policy turns on the MLS support. In fact the RHEL5 targeted policy is targeted-mcs, in refpolicy terms.
Signature · 9 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- 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.
Please check which type of policy that you compiled in the build.conf, in RHEL5 if you build a non-mls non-mcs policy the system will not boot. There is a bug in the RHEL5 kernel that will not be fixed until RHEL5 U1.
Quoted 41 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Kim Lawson-Jenkins
Sent: Friday, September 07, 2007 14:15
To: [email protected]
Subject: Kernel panic when using refpolicyHi,
I'm running RHEL5. I downloaded refpolicy-20070629.tar.bz2 and selinux-refpolicy-sources-20070629-1.noarch.rpm and installed the files for
the reference policy. When rebooting the system there was a fatal error -Kernel panic - not syncing: Fatal exception.There were many unknown Boolean errors for
libsepol.load.booleans and there
was the following error -
libsepol.sepol_genbools: error while reading/etc/selinux/refpolicy/BooleansIt looks like ifconfig was running when the kernel panic occurred. To recover booted into single-user mode and changed the SELINUXTYPE in the file
/etc/selinux/configfrom refpolicy to targeted. I can easily repeat the
problem by using the SELinux Management Tool to change the System Default
Policy Type from targeted to refpolicy and rebooting. I've looked at all of
the documentation to see if I missed a step or downloaded an incorrect file
but I can't find anything. Can anyone give me some insight into what the
problem may be? Thanks in advance for a response.Kim
Quoted 7 lines
--
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.
--
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.