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 1536152 - SELinux is preventing pmdalinux from 'getattr' accesses on the directory /var/lib/mock.
Summary: SELinux is preventing pmdalinux from 'getattr' accesses on the directory /var...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:daf6e3b6266ddc2060d80aadaaf...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-18 17:38 UTC by Stephen Gallagher
Modified: 2018-02-27 17:21 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-283.26.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-27 17:21:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stephen Gallagher 2018-01-18 17:38:39 UTC
Description of problem:
I attempted to perform a mock build against a Rawhide (f28) buildroot.
SELinux is preventing pmdalinux from 'getattr' accesses on the directory /var/lib/mock.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that pmdalinux should be allowed getattr access on the mock directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'pmdalinux' --raw | audit2allow -M my-pmdalinux
# semodule -X 300 -i my-pmdalinux.pp

Additional Information:
Source Context                system_u:system_r:pcp_pmcd_t:s0
Target Context                system_u:object_r:mock_var_lib_t:s0
Target Objects                /var/lib/mock [ dir ]
Source                        pmdalinux
Source Path                   pmdalinux
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           mock-1.4.8-1.fc27.noarch
Policy RPM                    selinux-policy-3.13.1-283.21.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.14.13-300.fc27.x86_64 #1 SMP Thu
                              Jan 11 04:00:01 UTC 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2018-01-18 12:37:48 EST
Last Seen                     2018-01-18 12:37:48 EST
Local ID                      d323dd39-804c-453d-851f-7c09508c381a

Raw Audit Messages
type=AVC msg=audit(1516297068.45:619): avc:  denied  { getattr } for  pid=2016 comm="pmdalinux" path="/var/lib/mock" dev="dm-1" ino=281694 scontext=system_u:system_r:pcp_pmcd_t:s0 tcontext=system_u:object_r:mock_var_lib_t:s0 tclass=dir permissive=0


Hash: pmdalinux,pcp_pmcd_t,mock_var_lib_t,dir,getattr

Version-Release number of selected component:
selinux-policy-3.13.1-283.21.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.14.13-300.fc27.x86_64
type:           libreport

Comment 1 Fedora Update System 2018-02-20 11:14:45 UTC
selinux-policy-3.13.1-283.26.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-a9711c96b2

Comment 2 Fedora Update System 2018-02-20 18:19:12 UTC
selinux-policy-3.13.1-283.26.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-2018-a9711c96b2

Comment 3 Fedora Update System 2018-02-27 17:21:39 UTC
selinux-policy-3.13.1-283.26.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.