All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: Kim Lawson-Jenkins <lawson@itd.nrl.navy.mil>
Cc: selinux@tycho.nsa.gov
Subject: Re: Kernel panic when using refpolicy
Date: Fri, 07 Sep 2007 13:44:16 -0400	[thread overview]
Message-ID: <1189187056.13435.16.camel@gorn> (raw)
In-Reply-To: <000c01c7f17a$f2047130$c301000a@PC05>

On Fri, 2007-09-07 at 13:14 -0500, Kim Lawson-Jenkins wrote:
> 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.

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.

-- 
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2007-09-07 17:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-07 18:14 Kernel panic when using refpolicy Kim Lawson-Jenkins
2007-09-07 17:44 ` Christopher J. PeBenito [this message]
2007-09-07 18:56   ` Kim Lawson-Jenkins
2007-09-07 17:44 ` Eric Paris
2007-09-07 17:50 ` Brian M. Williams
  -- strict thread matches above, loose matches on Subject: below --
2007-12-29 18:08 Jeremiah Jahn
2007-12-31 16:55 ` Eric Paris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1189187056.13435.16.camel@gorn \
    --to=cpebenito@tresys.com \
    --cc=lawson@itd.nrl.navy.mil \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.