Bug 1751944 - mock-1.4.18 resulting file ownership is root:root
Summary: mock-1.4.18 resulting file ownership is root:root
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 29
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-13 07:50 UTC by Dave
Modified: 2019-09-16 12:55 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-16 12:55:54 UTC


Attachments (Terms of Use)

Description Dave 2019-09-13 07:50:24 UTC
Description of problem: On mock-1.4.18-1.fc29.noarch, the resulting files are owned by root:root instead of current user

Version-Release number of selected component (if applicable):
mock-1.4.18-1.fc29.noarch

How reproducible:
mock -v --no-cleanup-after --resultdir "/home/mock/rpm/mypackage-1.0/RPMS/fedora-29-x86_64" -r fedora-29-x86_64 "/home/mock/rpm/mypackage-1.0/SRPMS/mypackage-1.0.src.rpm"

Steps to Reproduce:
1. Build any src.rpm file.
2.
3.

Actual results:
Packages and log files owned by root:root, except for hw_info.log

Expected results:
Packages and log files owned by $(id -un):$(id -gn), in my case mock:mock

Additional info:
- Downgrading to mock-1.4.16-1.fc29.noarch.rpm fixes the problem.
- SELinux is disabled on my build server
- In my case, /home/mock is located on / , which is an ext4 partition on top of LVM.


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