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.
Bug 1792859 - pmlogger SELinux issue
Summary: pmlogger SELinux issue
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcp
Version: 7.8
Hardware: ppc64le
OS: Linux
medium
medium
Target Milestone: rc
: 7.9
Assignee: Nathan Scott
QA Contact: Jan Kurik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-20 09:10 UTC by Jan Kurik
Modified: 2023-12-15 17:12 UTC (History)
6 users (show)

Fixed In Version: pcp-4.3.2-8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-29 19:24:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:3869 0 None None None 2020-09-29 19:25:25 UTC

Description Jan Kurik 2020-01-20 09:10:15 UTC
Description of problem:
Run of pmlogger triggers a SELinux issue

Version-Release number of selected component (if applicable):
* 

How reproducible:
* This issue is always reproducible on PPC64LE architecture
* It is not reproducible on other supported RHEL-7.x architectures

Steps to Reproduce:
1. Install RHEL-7.7 (or the latest build of RHEL-7.8) on PPC64LE architecture
2. Install pcp
# yum install -y pcp
3. Start pmlogger service
# systemctl start pmlogger

Actual results:
* An AVC issue is reported

type=AVC msg=audit(1579509798.199:106): avc:  denied  { execute } for  pid=9634 comm="pmlogger_daily" name="setfiles" dev="dm-0" ino=34500334 scontext=system_u:system_r:pcp_pmlogger_t:s0 tcontext=system_u:object_r:setfiles_exec_t:s0 tclass=file permissive=0
type=AVC msg=audit(1579271450.951:117): avc:  denied  { fowner } for  pid=20309 comm="xz" capability=3  scontext=system_u:system_r:pcp_pmlogger_t:s0 tcontext=system_u:system_r:pcp_pmlogger_t:s0 tclass=capability permissive=0

#============= pcp_pmlogger_t ==============
allow pcp_pmlogger_t setfiles_exec_t:file execute;

Expected results:
* No AVC issues observed

Additional info:
IMO this is a follow-up (or a re-occurrence) of bz1394199 and bz1697808

Comment 2 Nathan Scott 2020-02-20 06:15:01 UTC
commit 0b70cb89fcc51a9d0b582f04ee1c21134bd4c624
Author: Nathan Scott <nathans>
Date:   Thu Feb 20 17:14:07 2020 +1100

    selinux: allow pcp_pmlogger_t access to execute setfiles on el7 ppc64le
    
    Resolves Red Hat BZ #1792859

Comment 6 errata-xmlrpc 2020-09-29 19:24:55 UTC
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 (Low: pcp security, bug fix, and enhancement update), 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/RHSA-2020:3869


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