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.
Description of problem:
Apparently latest insights-client executes luksmeta command, which causes an AVC to pop up when luksmeta, running in insights-client context, tries to read /dev/random:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
type=AVC msg=audit(1668154033.316:3290): avc: denied { read } for pid=112075 comm="luksmeta" name="random" dev="devtmpfs" ino=1031 scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:object_r:random_device_t:s0 tclass=chr_file permissive=0
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
Since insights and sosreport are very similar tools, insights should have same rules as sosreport has, but it's not the case:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
[root@vm-rhel8 ~]# sesearch -A -s insights_client_t -t random_device_t -c chr_file
allow insights_client_t device_node:chr_file getattr;
[root@vm-rhel8 ~]# sesearch -A -s sosreport_t -t random_device_t -c chr_file
allow devices_unconfined_type device_node:chr_file { append audit_access create execute execute_no_trans getattr ioctl link lock map mounton open quotaon read relabelfrom relabelto rename setattr swapon unlink write };
allow nsswitch_domain random_device_t:chr_file { getattr ioctl lock open read }; [ authlogin_nsswitch_use_ldap ]:True
allow sosreport_t device_node:chr_file getattr;
allow sosreport_t random_device_t:chr_file { getattr ioctl lock open read };
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
Please fix the policy accordingly, it's not the first time AVCs show up after a insights-client update.
Especially, because insights-client pulls "Upstream code" somehow, we can expect more AVCs in the future.
Version-Release number of selected component (if applicable):
insights-client-3.1.7-8.el8.noarch
selinux-policy-3.14.3-108.el8.noarch
How reproducible:
Always on customer system
These rules are a part of the latest policy version:
rhel87# sesearch -A -s insights_client_t -t random_device_t -c chr_file
allow insights_client_t device_node:chr_file getattr;
allow insights_client_t random_device_t:chr_file { getattr ioctl lock open read };
allow nsswitch_domain random_device_t:chr_file { getattr ioctl lock open read }; [ authlogin_nsswitch_use_ldap ]:True
rhel87# rpm -q selinux-policy
selinux-policy-3.14.3-108.el8_7.1.noarch
and selinux-policy-3.14.3-111.el8.noarch
Also refer to https://bugzilla.redhat.com/show_bug.cgi?id=2136762 for other details including expected batch update.
*** This bug has been marked as a duplicate of bug 2136762 ***
Description of problem: Apparently latest insights-client executes luksmeta command, which causes an AVC to pop up when luksmeta, running in insights-client context, tries to read /dev/random: -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< -------- type=AVC msg=audit(1668154033.316:3290): avc: denied { read } for pid=112075 comm="luksmeta" name="random" dev="devtmpfs" ino=1031 scontext=system_u:system_r:insights_client_t:s0 tcontext=system_u:object_r:random_device_t:s0 tclass=chr_file permissive=0 -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< -------- Since insights and sosreport are very similar tools, insights should have same rules as sosreport has, but it's not the case: -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< -------- [root@vm-rhel8 ~]# sesearch -A -s insights_client_t -t random_device_t -c chr_file allow insights_client_t device_node:chr_file getattr; [root@vm-rhel8 ~]# sesearch -A -s sosreport_t -t random_device_t -c chr_file allow devices_unconfined_type device_node:chr_file { append audit_access create execute execute_no_trans getattr ioctl link lock map mounton open quotaon read relabelfrom relabelto rename setattr swapon unlink write }; allow nsswitch_domain random_device_t:chr_file { getattr ioctl lock open read }; [ authlogin_nsswitch_use_ldap ]:True allow sosreport_t device_node:chr_file getattr; allow sosreport_t random_device_t:chr_file { getattr ioctl lock open read }; -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< -------- Please fix the policy accordingly, it's not the first time AVCs show up after a insights-client update. Especially, because insights-client pulls "Upstream code" somehow, we can expect more AVCs in the future. Version-Release number of selected component (if applicable): insights-client-3.1.7-8.el8.noarch selinux-policy-3.14.3-108.el8.noarch How reproducible: Always on customer system