Bug 1227043 - SELinux is preventing pmdaroot from 'create' accesses on the sock_file root.socket.
Summary: SELinux is preventing pmdaroot from 'create' accesses on the sock_file root.s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8cd4ed2297322fdf377b44396a3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-01 19:26 UTC by Stephen Gallagher
Modified: 2015-06-11 18:38 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-128.1.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-11 18:38:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stephen Gallagher 2015-06-01 19:26:36 UTC
Description of problem:
I clicked on "Store performance data" in Cockpit 0.60 on Fedora 22 (from the cockpit-preview repository)
SELinux is preventing pmdaroot from 'create' accesses on the sock_file root.socket.

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

If you believe that pmdaroot should be allowed create access on the root.socket sock_file 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:
# grep pmdaroot /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:pcp_pmcd_t:s0
Target Context                system_u:object_r:pcp_var_lib_t:s0
Target Objects                root.socket [ sock_file ]
Source                        pmdaroot
Source Path                   pmdaroot
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-126.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.0.4-301.fc22.x86_64 #1 SMP Thu
                              May 21 13:10:33 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-06-01 15:25:26 EDT
Last Seen                     2015-06-01 15:25:26 EDT
Local ID                      b0e75a7f-dc3b-40a5-9223-ee8874e82e78

Raw Audit Messages
type=AVC msg=audit(1433186726.72:1162): avc:  denied  { create } for  pid=9676 comm="pmdaroot" name="root.socket" scontext=system_u:system_r:pcp_pmcd_t:s0 tcontext=system_u:object_r:pcp_var_lib_t:s0 tclass=sock_file permissive=0


Hash: pmdaroot,pcp_pmcd_t,pcp_var_lib_t,sock_file,create

Version-Release number of selected component:
selinux-policy-3.13.1-126.fc22.noarch

Additional info:
reporter:       libreport-2.5.1
hashmarkername: setroubleshoot
kernel:         4.0.4-301.fc22.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2015-06-02 15:41:22 UTC
commit 6097ddb1a1ab384a53ffc90acca6b103ae79305e
Author: Miroslav Grepl <mgrepl>
Date:   Tue Jun 2 17:40:27 2015 +0200

    Allow pcp domains to create root.socket in /var/lip/pcp directroy. BZ(1227043)

Comment 2 Fedora Update System 2015-06-09 14:39:30 UTC
selinux-policy-3.13.1-128.1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-128.1.fc22

Comment 3 Fedora Update System 2015-06-10 19:11:16 UTC
Package selinux-policy-3.13.1-128.1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 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.13.1-128.1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-9714/selinux-policy-3.13.1-128.1.fc22
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-06-11 18:38:00 UTC
selinux-policy-3.13.1-128.1.fc22 has been pushed to the Fedora 22 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.