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 1790452 - Installation of pcp-pmda-samba causes SELinux issues
Summary: Installation of pcp-pmda-samba causes SELinux issues
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pcp
Version: 8.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: Nathan Scott
QA Contact: Jan Kurik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-13 11:27 UTC by Jan Kurik
Modified: 2021-09-17 12:48 UTC (History)
5 users (show)

Fixed In Version: pcp-5.1.1-3
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 03:00:37 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4684 0 None None None 2020-11-04 03:01:00 UTC

Description Jan Kurik 2020-01-13 11:27:18 UTC
Description of problem:
Installation of pcp-pmda-samba PMDA on a fresh RHEL-8.2 system triggers SELinux issues.

Version-Release number of selected component (if applicable):
* pcp-pmda-samba-5.0.2-2.el8

How reproducible:
Always

Steps to Reproduce:
1.On a fresh RHEL-8.2 system install pcp-pmda-samba
# yum install -y pcp-pmda-samba

2. Run an installation script of the PMDA
# cd /var/lib/pcp/pmdas/samba/ && ./Install

3. Check SELinux reports using ausearch or audit2allow tools
# ausearch -m AVC,USER_AVC
# audit2allow -a

Actual results:
SELinux issues reported:

type=AVC msg=audit(1578497637.418:784): avc:  denied  { write } for  pid=19494 comm=smbstatus name=msg.lock dev=vda1 ino=6348450 scontext=system_u:system_r:pcp_pmcd_t:s0 tcontext=unconfined_u:object_r:samba_var_t:s0 tclass=dir permissive=0

#============= pcp_pmcd_t ==============
allow pcp_pmcd_t samba_var_t:dir write;

Expected results:
The installation and run of the PMDA does not produce any SELinux issues.

Comment 1 Nathan Scott 2020-04-21 00:29:05 UTC
This will be resolved by rebase to pcp-5.1.x

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

Comment 2 Jan Kurik 2020-06-12 15:22:41 UTC
This issue still persist in pcp-5.1.1-2.el8 build.

Comment 5 Jan Kurik 2020-07-13 08:14:57 UTC
Verified on pcp-selinux-5.1.1-3.el8

Comment 8 errata-xmlrpc 2020-11-04 03:00:37 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 (pcp 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/RHBA-2020:4684


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