policy-1.9.2-9 causes kernel panic during boot

jim tate mickeyboa at sbcglobal.net
Mon Apr 5 10:39:53 UTC 2004


J. Scott Farrow wrote:

>On Sun, 2004-04-04 at 11:27, Fred New wrote:
>  
>
>>In my FC2T2 system, I upgraded from policy-1.9.2-5 to policy-1.9.2-9
>>and ended up with (as I recall) the following files in
>>/etc/security/selinux:
>>
>>file_contexts
>>file_contexts.rpmnew
>>policy.
>>pllicy.16.rpmsave
>>
>>With no guidance on what to do, I renamed file_contexts.rpmnew to
>>file_contexts, but I left the policy files as they were.
>>
>>Upon booting, init would fail to load the policy, this would be
>>immediately followed by a kernel panic.  Could I have renamed one of
>>the policy files to recover?  I have since re-installed FC2T2 (just
>>for the practice).
>>
>>By the way, in the above situation, appending "selinux=0" to the
>>kernel parameters in the grub boot screen wouldn't allow me to
>>recover.  It still attempted to load the policy; a kernel panic would
>>again result.  Does this parameter actually do anything?
>>
>>    
>>
>The same thing happened to me when I used yum to upgrade my policy rpm. 
>I recovered from this by booting the rescue image off the first iso
>disk, and editing /etc/sysconfig/selinux to :
>
>SELINUX=0
>
>I'm wondering the same thing about the kernel option myself.
>
>Once you've booted, you need to remove and reinstall the policy
>package.  You should have an /etc/security/selinux/policy.16 file.  Your
>rpm update failed for some reason.
>
>- J. Scott Farrow
>
>
>
>
>
>
>  
>
Your right  about the /etc/security/selinux/policy.16 file, I 
uninstalled policy-1.9.2-9
and reinstalled policy and the policy.16 file is not being properly 
created, all that is there
is file with a big ? in it. Even if i do a rpm -ivh --force, I still get 
the same error message
as shown below, but the directory path and uncreated file is there. The 
line number
1131-1758 I edited in, that is the the number of lines that show in 
error message

/etc/security/selinux/file_contexts:  invalid context 
system_u:object_r:amanda_recover_dir_t on line number 1131-1758
Preparing...                ########################################### 
[100%]
   1:policy                 ########################################### 
[100%]
Can't open '/etc/security/selinux/policy.16':  No such file or directory
error: %post(policy-1.9.2-9) scriptlet failed, exit status 2

I have my /etc/sysconfig/selinux file set to SELINUX=permissive , that 
is the only way
I can get in without bootup locking up with Kernel Panic!!

Jim Taate





More information about the fedora-test-list mailing list