Bug 1000642 - staff_t can't access mock build outputs
Summary: staff_t can't access mock build outputs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-23 23:31 UTC by Garrett Holmstrom
Modified: 2013-09-23 00:44 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.11.1-103.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-23 00:44:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Garrett Holmstrom 2013-08-23 23:31:25 UTC
Description of problem:
I usually run as staff_t, which doesn't seem to have access to /var/lib/mock/results or anything else that happens to be labelled mock_var_lib_t.  This prevents me from grabbing packages after mock finishes building them.  Should it?

type=SYSCALL msg=audit(1377300241.231:11272): arch=c000003e syscall=4 success=no exit=-13 a0=7ffffbe7b36a a1=7ffffbe796c0 a2=7ffffbe796c0 a3=2 items=0 ppid=2067 pid=11853 auid=1000 uid=1000 gid=100 euid=1000 suid=1000 fsuid=1000 egid=100 sgid=100 fsgid=100 ses=1 tty=pts4 comm="cp" exe="/usr/bin/cp" subj=staff_u:staff_r:staff_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1377300241.231:11272): avc:  denied  { search } for  pid=11853 comm="cp" name="mock" dev="dm-1" ino=15460 scontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mock_var_lib_t:s0 tclass=dir



Version-Release number of selected component (if applicable):
selinux-policy-3.11.1-100.fc18.noarch

Comment 1 Miroslav Grepl 2013-08-27 09:00:58 UTC
commit 0e437ade6d7eccfd73d03db415915dfe79878440
Author: Miroslav Grepl <mgrepl>
Date:   Tue Aug 27 11:00:37 2013 +0200

    Allow roles which can run mock to read mock lib files to view results

Comment 2 Fedora Update System 2013-09-02 15:28:39 UTC
selinux-policy-3.11.1-101.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-101.fc18

Comment 3 Fedora Update System 2013-09-02 23:27:22 UTC
Package selinux-policy-3.11.1-101.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-101.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-15645/selinux-policy-3.11.1-101.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-09-10 11:17:34 UTC
selinux-policy-3.11.1-103.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-103.fc18

Comment 5 Fedora Update System 2013-09-23 00:44:34 UTC
selinux-policy-3.11.1-103.fc18 has been pushed to the Fedora 18 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.