Bug 1649407

Summary: PCP generating tons of SELinux violations
Product: Red Hat Enterprise Linux 7 Reporter: Oliver Falk <ofalk>
Component: pcpAssignee: pcp-maint <pcp-maint>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 7.6CC: fche, lberk, lvrabec, mgoodwin, mgrepl, mmalik, nathans, ofalk, patrickm, pcp-maint, peter.vreman, plautrba, ssekidde, toneata, ubellavance, vmojzis, zpytela
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-04 00:48:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1122832    

Description Oliver Falk 2018-11-13 15:08:40 UTC
Description of problem:
With the default installation of PCP, we're observing a lot of avc: denied messages.


Version-Release number of selected component (if applicable): pcp-4.1.0-5.el7_6

How reproducible:
Always, however the exact deny messages depend on the applications installed. In this case it RHSAT 6.4.


Steps to Reproduce:
1. Install RHEL
2. Install PCP
3. Start pmcd

Actual results:

One machine:
Nov 11 03:13:14 xxx setroubleshoot: SELinux is preventing /var/lib/pcp/pmdas/linux/pmdalinux from unix_read access on the shared memory labeled postgresql_t. For complete SELinux messages run: sealert -l 2736eb3d-c900-40c3-8963-cccdd1bc8c09
Nov 11 03:13:14 xxx setroubleshoot: SELinux is preventing /var/lib/pcp/pmdas/linux/pmdalinux from unix_read access on the semaphore labeled postgresql_t. For complete SELinux messages run: sealert -l b731435c-ed5c-43ac-a4b3-4adc7d8d2b1b

Other machine:
Nov 12 15:36:17 xxy setroubleshoot: SELinux is preventing /var/lib/pcp/pmdas/linux/pmdalinux from unix_read access on the semaphore labeled rpm_script_t. For complete SELinux messages run: sealert -l 67029b6d-cc05-4115-ad59-14b8a2dd4b27
Nov 12 15:36:20 xxy setroubleshoot: SELinux is preventing /var/lib/pcp/pmdas/linux/pmdalinux from 'getattr, associate' accesses on the semaphore labeled rpm_script_t. For complete SELinux messages run: sealert -l e1ff56dd-0979-45b3-a2b3-b14f0a802ebb

Expected results:
No deny messages caused by PCP.


Additional info:
Customer case will be linked.

Comment 1 Ugo Bellavance 2019-02-18 04:53:25 UTC
Any plans on fixing this issue?  I can see that no one from Red Hat commented and it's been 3 months now. Do you need more information?

Comment 2 Oliver Falk 2019-02-18 09:00:04 UTC
Reassigning to selinux-policy.

Comment 5 Nathan Scott 2019-03-04 00:48:34 UTC
Fixed by rebase in 7.7

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