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 1829306 - Setroubleshoot plugins search for a refer to invalid SELinux types
Summary: Setroubleshoot plugins search for a refer to invalid SELinux types
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: setroubleshoot-plugins
Version: 8.3
Hardware: All
OS: Linux
medium
unspecified
Target Milestone: rc
: 8.3
Assignee: Vit Mojzis
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-29 11:19 UTC by Vit Mojzis
Modified: 2021-08-30 12:17 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 03:35:50 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4753 0 None None None 2020-11-04 03:35:55 UTC

Description Vit Mojzis 2020-04-29 11:19:27 UTC
Description of problem:
Setroubleshoot plugins are searching for non existent types which causes the plugins not to be applied where expected (insmod/depmod/update_modules, file_t, semange_read_lock_t). Some of the types are refered to in "problem decription" (e.g. dhclient_t).

Version-Release number of selected component (if applicable):
Setroubleshoot-plugins-3.3.11-2

How reproducible:
Cause an AVC with one of the following types:
kmod_exec_t, kmod_tmp_t, semanage_read_lock_t
For each of them there is a setroubleshoot plugin which should show suggestions, but doesn't.

Steps to Reproduce:
# cat avc
type=AVC msg=audit(1587399662.357:495): avc:  denied  { write } for  pid=33024 comm="runcon" dev="sda3" ino=6832090 scontext=system_u:system_r:audisp_t:s0-s0:c0.c1023 tcontext=system_u:object_r:kmod_exec_t:s0 tclass=file permissive=0

# sealert -a avc

Actual results:
Only the catchall plugin lists it's suggestion.

Expected results:
SELinux is preventing runcon from write access on the file labeled kmod_exec_t.

*****  Plugin kernel_modules (91.4 confidence) suggests   ********************

If you do not think runcon should try write access on Unknown.
Then you may be under attack by a hacker, since confined applications should not need this access.
Do
contact your security administrator and report this issue.

Comment 14 errata-xmlrpc 2020-11-04 03:35:50 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 (setroubleshoot-plugins 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:4753


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