Bug 1013274

Summary: error while updating selinux-policy via yum
Product: [Fedora] Fedora Reporter: Amit Shah <amit.shah>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: amit.shah, dominick.grift, dwalsh, lvrabec, mgrepl, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-17 17:24:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Amit Shah 2013-09-29 02:23:59 UTC
Description of problem:

During the recent update, this error pops up while updating selinux-policy:

  Updating   : selinux-policy-3.12.1-74.4.fc19.noarch                                      102/1172 
libsepol.scope_copy_callback: entropyd: Duplicate declaration in module: type/attribute entropyd_var_run_t (No such file or directory).
libsemanage.semanage_link_sandbox: Link packages failed (No such file or directory).
semodule:  Failed!

Comment 1 Amit Shah 2013-09-29 02:41:29 UTC
Might be possibly related to bug 1013273

Comment 2 Daniel Walsh 2013-09-29 12:05:29 UTC
Looks like you might have a bad module on your machine?

Could you 
locate audio_entropy.pp 
locate audioentropy.pp

Comment 3 Amit Shah 2013-10-28 18:20:24 UTC
(In reply to Daniel Walsh from comment #2)
> Looks like you might have a bad module on your machine?
> 
> Could you 
> locate audio_entropy.pp 
> locate audioentropy.pp

No result on either.

Comment 4 Daniel Walsh 2013-10-29 15:36:07 UTC
What is the output of

rpm -qf /etc/selinux/targeted/modules/active/modules/*.pp | grep -v selinux-policy-targeted

Comment 5 Amit Shah 2013-10-31 18:09:08 UTC
(In reply to Daniel Walsh from comment #4)
> What is the output of
> 
> rpm -qf /etc/selinux/targeted/modules/active/modules/*.pp | grep -v
> selinux-policy-targeted

This machine has been upgraded to every subsequent Fedora release since a long time back.

# rpm -qf /etc/selinux/targeted/modules/active/modules/*.pp | grep -v selinux-policy-targeted
file /etc/selinux/targeted/modules/active/modules/ada.pp is not owned by any package
file /etc/selinux/targeted/modules/active/modules/audioentropy.pp is not owned by any package
file /etc/selinux/targeted/modules/active/modules/BackupPC.pp is not owned by any package
file /etc/selinux/targeted/modules/active/modules/execmem.pp is not owned by any package
file /etc/selinux/targeted/modules/active/modules/hal.pp is not owned by any package
file /etc/selinux/targeted/modules/active/modules/hotplug.pp is not owned by any package
file /etc/selinux/targeted/modules/active/modules/howl.pp is not owned by any package
file /etc/selinux/targeted/modules/active/modules/java.pp is not owned by any package
file /etc/selinux/targeted/modules/active/modules/kerneloops.pp is not owned by any package
file /etc/selinux/targeted/modules/active/modules/kudzu.pp is not owned by any package
file /etc/selinux/targeted/modules/active/modules/mono.pp is not owned by any package
file /etc/selinux/targeted/modules/active/modules/openoffice.pp is not owned by any package
file /etc/selinux/targeted/modules/active/modules/qpidd.pp is not owned by any package
file /etc/selinux/targeted/modules/active/modules/tzdata.pp is not owned by any package
file /etc/selinux/targeted/modules/active/modules/xfs.pp is not owned by any package

Comment 7 Daniel Walsh 2013-11-01 15:14:31 UTC
Amit, rm everyone of those pp files that are not owned.  The selinux-policy package is supposed to delete these on update.  

After you remove them run

# semodule -B

And you should be all set.

Comment 8 Daniel Walsh 2013-11-01 15:54:53 UTC
Miroslav out post install scripts are broken.  We should have removed these files on update.  Which I will remove out of the check for rebuild.

No harm on doing that, but I do not believe this whole section is working properly.

Comment 9 Fedora End Of Life 2015-01-09 20:01:28 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 10 Fedora End Of Life 2015-02-17 17:24:01 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.