Bug 2165483 - mock is using wrong ownership for the result directory
Summary: mock is using wrong ownership for the result directory
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mock
Version: epel9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Copr Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-30 08:59 UTC by Götz Waschk
Modified: 2023-01-30 10:42 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Götz Waschk 2023-01-30 08:59:43 UTC
Description of problem:

When you rebuild a package in mock on EL9, the result directory has the wrong group ownership, it should be owned by the mock group, but it is owned by the caller's primary group.


Version-Release number of selected component (if applicable): 3.5-1.el9


How reproducible:
always

Steps to Reproduce:
1. mock somepackage
2. ls -ld /var/lib/mock/*/result
3.

Actual results:
% ls -ld /var/lib/mock/slz-7-x86_64/result
drwxrwxr-x. 2 waschk dv 4096 30. Jan 09:53 /var/lib/mock/slz-7-x86_64/result


Expected results:
drwxrwxr-x. 2 waschk mock 4096 30. Jan 09:53 /var/lib/mock/slz-7-x86_64/result

Additional info:
This is different from the behaviour of mock 2.17-1.el7 on EL7.

Comment 1 Pavel Raiskup 2023-01-30 09:53:34 UTC
Thank you for the report.

Can you elaborate on why you need this fix, and what it breaks?

Comment 2 Götz Waschk 2023-01-30 10:42:53 UTC
This is a problem if another user with a different primary group is calling mock. Then he cannot write the results into this directory.


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