Bug 189237 - Kernel panic on rpm uninstall
Summary: Kernel panic on rpm uninstall
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 5
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-04-18 15:06 UTC by Felix Bellaby
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-03-28 20:04:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Felix Bellaby 2006-04-18 15:06:42 UTC
Description of problem:

The selinux-policy post-install script creates a /etc/selinux/config that sets
SELINUX=enforcing but there is no uninstall script to remove this file or reset
the enforcing policy.

As a result, "rpm -U selinux-policy" causes a kernel panic on reboot.

Version-Release number of selected component (if applicable):

selinux-policy-2.2.23-15

How reproducible:

rpm -U selinux-policy
reboot

Additional info:

I can not see any big problem with just wiping out the /etc/selinux/config file
on rpm uninstall. It should be useless once selinux-policy has gone.

Comment 1 Felix Bellaby 2006-04-18 15:09:43 UTC
Whoops! Should read "rpm -e selinux-policy" above

Comment 2 Daniel Walsh 2006-04-19 15:15:56 UTC
Fixed in selinux-policy-2.2.33-2
in Rawhide.  Will go in to the next text release for FC-5

echo "SELINUX=disabled" > /etc/selinux/config

should fix the problem

Comment 4 Daniel Walsh 2007-03-28 20:04:30 UTC
Closing bugs



Note You need to log in before you can comment on or make changes to this bug.