Bug 1751944

Summary: mock-1.4.18 resulting file ownership is root:root
Product: [Fedora] Fedora Reporter: Dave <bugzilla-redhat>
Component: mockAssignee: Miroslav Suchý <msuchy>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 29CC: jdisnard, jkeating, mebrown, msuchy, philip.wyett, praiskup, williams
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-16 12:55:54 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 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.

Comment 1 Miroslav Suchý 2019-09-16 12:55:54 UTC
https://github.com/rpm-software-management/mock/issues/322