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 1443632 - AVC denials observed during test suite runs - net_admin, getattr
Summary: AVC denials observed during test suite runs - net_admin, getattr
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcp
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lukas Berk
QA Contact: Miloš Prchlík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-19 15:11 UTC by Miloš Prchlík
Modified: 2017-08-01 18:31 UTC (History)
5 users (show)

Fixed In Version: pcp-3.11.8-4.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 18:31:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
/mnt/qa/scratch/mprchlik/enforcing.txt (135.55 KB, application/x-gzip)
2017-04-19 15:16 UTC, Miloš Prchlík
no flags Details
denials found in permissive mode (11.12 KB, text/plain)
2017-04-19 15:16 UTC, Miloš Prchlík
no flags Details
denials found in enforcing mode (700.83 KB, text/plain)
2017-04-19 15:17 UTC, Miloš Prchlík
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1968 0 normal SHIPPED_LIVE pcp bug fix and enhancement update 2017-08-01 18:09:55 UTC

Description Miloš Prchlík 2017-04-19 15:11:28 UTC
Description of problem:

Many AVC denials pop up during (sanity) run of pcp's upstream test suite on RHEL-7.4 box, mostly referencing net_admin and getattr on many different files. See attachments for full list of observed denials (dumped by ausearch command bellow).


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

pcp-3.11.8-3.el7
selinux-policy-3.13.1-136.el7.noarch


How reproducible:


Steps to Reproduce:

From our "how to test selinux" howto:

# service auditd restart
# setenforce 1
# restorecon -Rv /etc /run /var
# START_DATE_TIME=`date "+%m/%d/%Y %T"`
# ./check -s -g sanity
# ausearch -m AVC -m USER_AVC -m SELINUX_ERR -i -ts ${START_DATE_TIME}

I also used `setenforce 0` and re-ran the test suite.


Actual results:


Expected results:


Additional info:

Comment 1 Miloš Prchlík 2017-04-19 15:16:13 UTC
Created attachment 1272668 [details]
/mnt/qa/scratch/mprchlik/enforcing.txt

/var/log/audit/audit.log

Comment 2 Miloš Prchlík 2017-04-19 15:16:43 UTC
Created attachment 1272669 [details]
denials found in permissive mode

Comment 3 Miloš Prchlík 2017-04-19 15:17:28 UTC
Created attachment 1272671 [details]
denials found in enforcing mode

Comment 5 Miloš Prchlík 2017-06-21 13:21:18 UTC
Verified with build pcp-3.11.8-7.el7 - the AVC denials reported in this bug don't appear anymore, as far as I can tell (there are other types, reported in other bugs, making the whole search a bit messy...).

Comment 6 errata-xmlrpc 2017-08-01 18:31:43 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, 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/RHEA-2017:1968


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