Bug 867730 - libsemanage.semanage_reload_policy: load_policy returned error code 2. libsemanage.semanage_install_active: Could not copy /etc/selinux/targeted/modules/active/policy.kern to /etc/selinux/targeted/policy/policy.21. semodule: Failed!
libsemanage.semanage_reload_policy: load_policy returned error code 2. libsem...
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: selinux-policy-targeted (Show other bugs)
5.9
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Miroslav Grepl
BaseOS QE Security Team
:
Depends On:
Blocks: rhel59rtt
  Show dependency treegraph
 
Reported: 2012-10-18 04:09 EDT by Alexander Todorov
Modified: 2013-03-19 15:05 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-03-19 15:05:37 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Alexander Todorov 2012-10-18 04:09:47 EDT
Description of problem:

yum install selinux-policy-targeted --installroot=/some/path produces:


  Installing     : selinux-policy                                         93/96 

  Installing     : selinux-policy-targeted                                94/96libsemanage.semanage_reload_policy: load_policy returned error code 2.
libsemanage.semanage_install_active: Could not copy /etc/selinux/targeted/modules/active/policy.kern to /etc/selinux/targeted/policy/policy.21.
semodule:  Failed!
 



Looks like rpm scriptlets need some adjustment.
Comment 1 Miroslav Grepl 2013-03-19 11:08:44 EDT
Did you test it on RHEL6 also?
Comment 2 Eric Paris 2013-03-19 14:57:54 EDT
We are not going handle alternate install roots in the scriptlets in RHEL5.  If this is a problem in later releases you may propose this or a similar bug on that release.
Comment 3 RHEL Product and Program Management 2013-03-19 15:05:37 EDT
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.

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