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.
DescriptionSteffen Froemer
2019-04-09 07:17:31 UTC
Description of problem:
SELinux is preventing /var/lib/pcp/pmdas/linux/pmdalinux from using the ipc_owner capability
Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-229.el7_6.9.noarch
pcp-4.1.0-5.el7_6.x86_64
How reproducible:
100%
Steps to Reproduce:
1.
2.
3.
Actual results:
SELinux is preventing /var/lib/pcp/pmdas/linux/pmdalinux from using the ipc_owner capability.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that pmdalinux should have the ipc_owner capability 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 -i my-pmdalinux.pp
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 pmdalinux
Source Path /var/lib/pcp/pmdas/linux/pmdalinux
Port <Unknown>
Host host1
Source RPM Packages pcp-4.1.0-5.el7_6.x86_64
Target RPM Packages
Policy RPM selinux-policy-3.13.1-229.el7_6.9.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name host1
Platform Linux host1 3.10.0-957.10.1.el7.x86_64 #1 SMP
Thu Feb 7 07:12:53 UTC 2019 x86_64 x86_64
Alert Count 19
First Seen 2019-04-08 09:01:20 UTC
Last Seen 2019-04-08 09:09:20 UTC
Local ID cf4595ae-16d4-48d9-9e5e-a5c5d9b0678e
Raw Audit Messages
type=AVC msg=audit(1554714560.310:809): avc: denied { ipc_owner } for pid=6729 comm="pmdalinux" capability=15 scontext=system_u:system_r:pcp_pmcd_t:s0 tcontext=system_u:system_r:pcp_pmcd_t:s0 tclass=capability permissive=0
type=SYSCALL msg=audit(1554714560.310:809): arch=x86_64 syscall=semctl success=no exit=EACCES a0=6 a1=0 a2=12 a3=7ffce305d100 items=0 ppid=6696 pid=6729 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=pmdalinux exe=/var/lib/pcp/pmdas/linux/pmdalinux subj=system_u:system_r:pcp_pmcd_t:s0 key=(null)
Hash: pmdalinux,pcp_pmcd_t,pcp_pmcd_t,capability,ipc_owner
Expected results:
Additional info:
Thanks for the report Steffen. I've verified that AVC is resolved in more recent PCP selinux-policy versions and the fix will be in RHEL 7.7 (via rebase).
*** This bug has been marked as a duplicate of bug 1647308 ***
Description of problem: SELinux is preventing /var/lib/pcp/pmdas/linux/pmdalinux from using the ipc_owner capability Version-Release number of selected component (if applicable): selinux-policy-3.13.1-229.el7_6.9.noarch pcp-4.1.0-5.el7_6.x86_64 How reproducible: 100% Steps to Reproduce: 1. 2. 3. Actual results: SELinux is preventing /var/lib/pcp/pmdas/linux/pmdalinux from using the ipc_owner capability. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that pmdalinux should have the ipc_owner capability 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 -i my-pmdalinux.pp 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 pmdalinux Source Path /var/lib/pcp/pmdas/linux/pmdalinux Port <Unknown> Host host1 Source RPM Packages pcp-4.1.0-5.el7_6.x86_64 Target RPM Packages Policy RPM selinux-policy-3.13.1-229.el7_6.9.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name host1 Platform Linux host1 3.10.0-957.10.1.el7.x86_64 #1 SMP Thu Feb 7 07:12:53 UTC 2019 x86_64 x86_64 Alert Count 19 First Seen 2019-04-08 09:01:20 UTC Last Seen 2019-04-08 09:09:20 UTC Local ID cf4595ae-16d4-48d9-9e5e-a5c5d9b0678e Raw Audit Messages type=AVC msg=audit(1554714560.310:809): avc: denied { ipc_owner } for pid=6729 comm="pmdalinux" capability=15 scontext=system_u:system_r:pcp_pmcd_t:s0 tcontext=system_u:system_r:pcp_pmcd_t:s0 tclass=capability permissive=0 type=SYSCALL msg=audit(1554714560.310:809): arch=x86_64 syscall=semctl success=no exit=EACCES a0=6 a1=0 a2=12 a3=7ffce305d100 items=0 ppid=6696 pid=6729 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=pmdalinux exe=/var/lib/pcp/pmdas/linux/pmdalinux subj=system_u:system_r:pcp_pmcd_t:s0 key=(null) Hash: pmdalinux,pcp_pmcd_t,pcp_pmcd_t,capability,ipc_owner Expected results: Additional info: