Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
This rule was added to the selinux policy file:
f5758c47a43b2d061222d55b48193b706229a9e8
Author: Lukas Berk <lberk>
AuthorDate: Fri Apr 7 11:14:50 2017 -0400
Commit: Lukas Berk <lberk>
CommitDate: Mon Apr 10 09:35:34 2017 -0400
Which would have made it into pcp-3.11.10, released in May of 2017.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2018:0926
Description of problem: Running pcp atop caused the following selinux denial: =================================== type=SYSCALL msg=audit(1501898555.294:74424): arch=c000003e syscall=0 success=no exit=-13 a0=8 a1=7ffd6b3a34e0 a2=400 a3=2 items=0 ppid=4753 pid=4754 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="pmdaproc" exe="/var/lib/pcp/pmdas/proc/pmdaproc" subj=system_u:system_r:pcp_pmcd_t:s0 key=(null) type=AVC msg=audit(1501898555.294:74424): avc: denied { sys_ptrace } for pid=4754 comm="pmdaproc" capability=19 scontext=system_u:system_r:pcp_pmcd_t:s0 tcontext=system_u:system_r:pcp_pmcd_t:s0 tclass=capability =================================== Expanded message: =================================== SELinux is preventing /var/lib/pcp/pmdas/proc/pmdaproc from using the sys_ptrace capability. Additional Information: Source Context system_u:system_r:pcp_pmcd_t:s0 Target Context system_u:system_r:pcp_pmcd_t:s0 Target Objects Unknown [ capability ] Source pmdaproc Source Path /var/lib/pcp/pmdas/proc/pmdaproc Port <Unknown> Host pladd.remote.csb Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-102.el7_3.16.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name pladd.remote.csb Platform Linux pladd.remote.csb 3.10.0-514.26.2.el7.x86_64 #1 SMP Fri Jun 30 05:26:04 UTC 2017 x86_64 x86_64 Alert Count 137 First Seen 2017-08-04 21:52:49 EDT Last Seen 2017-08-04 21:57:55 EDT Local ID 05732430-0cb9-4a9d-9803-70c1f6c702ad =================================== Version-Release number of selected component (if applicable): pcp-3.11.3-4.el7.x86_64 pcp-system-tools-3.11.3-4.el7.x86_64 pcp-gui-3.11.3-4.el7.x86_64 pcp-libs-3.11.3-4.el7.x86_64 pcp-monitor-3.11.3-4.el7.x86_64 pcp-pmda-mounts-3.11.3-4.el7.x86_64 pcp-webapi-3.11.3-4.el7.x86_64 pcp-conf-3.11.3-4.el7.x86_64 python-pcp-3.11.3-4.el7.x86_64 How reproducible: Each execution Steps to Reproduce: 1. run "pcp atop" 2. "ausearch -c pmdaproc" shows denial messages Actual results: selinux denial Expected results: pmdaproc should run without selinux denials Additional info: