Bug 209376 - Selinux policy prevents upgrade of selinux policy rpm
Summary: Selinux policy prevents upgrade of selinux policy rpm
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-04 21:58 UTC by Stephen Tweedie
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-05 12:58:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stephen Tweedie 2006-10-04 21:58:55 UTC
Description of problem:
selinux-policy-targeted prevents successful RPM upgrades of itself.

Version-Release number of selected component (if applicable):
selinux-policy-targeted-2.3.18-2
updating to selinux-policy-targeted-2.3.18-3

Steps to Reproduce:
1. Install rawhide with selinux-policy-targeted-2.3.18-2
2. rpm -Uvh selinux-policy-2.3.18-2 selinux-policy-targeted-2.3.18-2

Actual results:
Preparing...                ########################################### [100%]
   1:selinux-policy         ########################################### [ 50%]
   2:selinux-policy-targeted########################################### [100%]
libsemanage.semanage_commit_sandbox: Could not remove previous backup
/etc/selinux/targeted/modules/previous.
semodule:  Failed!
audit(1159998887.398:15): avc:  denied  { rmdir } for  pid=3640 comm="semodule"
name="modules" dev=dm-5 ino=950295
scontext=root:system_r:semanage_t:s0-s0:c0.c255
tcontext=system_u:object_r:selinux_config_t:s0 tclass=dir

Expected results:
No errors.

Comment 1 Daniel Walsh 2006-10-05 11:45:55 UTC
This means you have a labeling problem.  

restorecon -R -v /etc/selinux/targeted


Comment 2 Stephen Tweedie 2006-10-05 11:59:53 UTC
This was immediately after a reboot with /.autorelabel set, so if things were
relabeled, it was the SELinux policy's fault.  I'm also not sure what info
you're asking for.

Comment 3 Daniel Walsh 2006-10-05 12:58:48 UTC
Looks like the relable was unsuccessfull


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