Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1485620 - Own directories /etc/libblockdev and /etc/libblockdev/conf.d
Summary: Own directories /etc/libblockdev and /etc/libblockdev/conf.d
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libblockdev
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1486051 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-26 10:04 UTC by Lukas Slebodnik
Modified: 2017-09-04 16:16 UTC (History)
4 users (show)

Fixed In Version: libblockdev-2.12-1.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-04 16:16:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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