Bug 1485620

Summary: Own directories /etc/libblockdev and /etc/libblockdev/conf.d
Product: [Fedora] Fedora Reporter: Lukas Slebodnik <lslebodn>
Component: libblockdevAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: sbueno, ville.skytta, vpodzime, vtrefny
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libblockdev-2.12-1.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-04 16:16:36 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 Lukas Slebodnik 2017-08-26 10:04:28 UTC
Description of problem:
Fedora packaging guidelies says:

Directory ownership is a little more complex than file ownership. Packages must own all directories they put files in, except for:

    any directories owned by the filesystem, man, or other explicitly created -filesystem packages
    any directories owned by other packages in your package's natural dependency chain 

In this context, a package's "natural dependency chain" is defined as the set of packages necessary for that package to function normally. To be specific, you do not need to require a package for the sole fact that it happens to own a directory that your package places files in. If your package already requires that package for other reasons, then your package should not also own that directory.

In all cases we are guarding against unowned directories being present on a system. Please see Packaging:UnownedDirectories for the details. 

http://fedoraproject.org/wiki/Packaging:UnownedDirectories

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


How reproducible:
Deterministic

Steps to Reproduce:
1. dnf install -y libblockdev
2. rpm -qf libblockdev/ libblockdev/conf.d/ libblockdev/conf.d/00-default.cfg

Actual results:
sh# rpm -qf libblockdev/ libblockdev/conf.d/ libblockdev/conf.d/00-default.cfg
file /etc/libblockdev is not owned by any package
file /etc/libblockdev/conf.d is not owned by any package
libblockdev-2.11-1.fc27.x86_64

Expected results:
sh# rpm -qf libblockdev/ libblockdev/conf.d/ libblockdev/conf.d/00-default.cfg
libblockdev-2.11-1.fc27.x86_64
libblockdev-2.11-1.fc27.x86_64
libblockdev-2.11-1.fc27.x86_64

Comment 1 Vojtech Trefny 2017-08-29 06:28:06 UTC
*** Bug 1486051 has been marked as a duplicate of this bug. ***

Comment 2 Ville Skyttä 2017-08-29 07:05:32 UTC
Note that bug 1486051 contains a ready to apply, git am'able fix for this (which I'm prepared to do, just say so).

Comment 3 Fedora Update System 2017-09-03 19:52:27 UTC
libblockdev-2.12-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-5cacadeaa9

Comment 4 Fedora Update System 2017-09-04 16:16:36 UTC
libblockdev-2.12-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.