Bug 1062328

Summary: Selinux policy is installing /usr/lib/rpm/macros.d/macros.selinux-policy which causes rpm to be required to be installed.
Product: [Fedora] Fedora Reporter: Daniel Walsh <dwalsh>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, ffesti, jzeleny, lvrabec, mgrepl, novyjindrich, packaging-team-maint, pknirsch, pmatilai, rvokal, walters
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: 2014-11-19 14:41:33 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 Daniel Walsh 2014-02-06 16:41:42 UTC
In some of the docker talks/minimum OS/Images world. We are looking to have limited packages installed and we noticed that selinux-policy was requiring rpm to be installed.

The reason for this is it packages  /usr/lib/rpm/macros.d/macros.selinux-policy  
And since /var/lib/rpm/macros.d is owned by rpm package, it gets sucked in.

I am looking for a way for this to not be required.  I could remove the file from the payload and just create the file in the post install.  

Or do you have any other ideas?

Comment 1 Panu Matilainen 2014-02-07 05:44:26 UTC
That seems like a text-book example of
https://fedoraproject.org/wiki/Packaging:Guidelines#The_directory_is_owned_by_a_package_which_is_not_required_for_your_package_to_function

Just have selinux-policy co-own the directory, no harm done as long as the permissions and ownership match (root, root, 0755).

Comment 2 Daniel Walsh 2014-02-14 19:53:34 UTC
Miroslav I just added these two directories to the spec file, could you build a rawhide version and we can check if the requires of rpm has disappeared.

Comment 3 Miroslav Grepl 2014-02-18 13:26:30 UTC
A new rawhide build is coming today.