Bug 1398146 - SELinux is preventing pmcd from 'read' accesses on the directory /var/lib/pcp/tmp/pmlogger.
Summary: SELinux is preventing pmcd from 'read' accesses on the directory /var/lib/pcp...
Keywords:
Status: CLOSED DUPLICATE of bug 1317515
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:72bb5431a4295ecb878d858a1a1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-24 08:16 UTC by Kazuo Moriwaka
Modified: 2016-11-25 10:45 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-11-25 10:45:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kazuo Moriwaka 2016-11-24 08:16:20 UTC
Description of problem:
SELinux is preventing pmcd from 'read' accesses on the directory /var/lib/pcp/tmp/pmlogger.

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

If you believe that pmcd should be allowed read access on the pmlogger 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 'pmcd' --raw | audit2allow -M my-pmcd
# semodule -X 300 -i my-pmcd.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:object_r:pcp_var_lib_t:s0
Target Objects                /var/lib/pcp/tmp/pmlogger [ dir ]
Source                        pmcd
Source Path                   pmcd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           pcp-3.11.5-1.fc25.x86_64
Policy RPM                    selinux-policy-3.13.1-224.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.8-300.fc25.x86_64 #1 SMP Tue
                              Nov 15 18:10:06 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-11-24 16:17:10 JST
Last Seen                     2016-11-24 16:17:10 JST
Local ID                      00a603e3-4a61-46b5-9565-d03a8eac7956

Raw Audit Messages
type=AVC msg=audit(1479971830.467:175): avc:  denied  { read } for  pid=1365 comm="pmcd" name="pmlogger" dev="dm-2" ino=453954 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:pcp_var_lib_t:s0 tclass=dir permissive=0


Hash: pmcd,init_t,pcp_var_lib_t,dir,read

Version-Release number of selected component:
selinux-policy-3.13.1-224.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.8-300.fc25.x86_64
type:           libreport

Potential duplicate: bug 1317515

Comment 1 Ioan Rogers 2016-11-24 19:51:14 UTC
Description of problem:
Just start pmcd service

Version-Release number of selected component:
selinux-policy-3.13.1-224.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.8-300.fc25.x86_64
type:           libreport

Comment 2 Lukas Vrabec 2016-11-25 10:45:37 UTC

*** This bug has been marked as a duplicate of bug 1317515 ***


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