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:
After disable and enable "Data Exchange" in the "Integration Services" from Hyper-V manager about 20 times, it will get the selinux denied log in the /var/log/audit/audit.log. This is detected by auto test case “https://github.com/LIS/lis-test/blob/master/WS2012R2/lisa/setupscripts/KVP_TestRescind.ps1."
Avc denied log: type=AVC msg=audit(1590994186.905:635): avc: denied { module_request } for pid=2750 comm="hypervkvpd" kmod="char-major-10-61" scontext=system_u:system_r:hypervkvp_t:s0 tcontext=system_u:system_r:kerne
l_t:s0 tclass=system permissive=0
Version-Release number of selected components (if applicable):
RHEL-8.3 kernel 4.18.0-205.el8.x86_64
# rpm -qa | grep -i hyperv
hyperv-daemons-license-0-0.29.20180415git.el8.noarch
hyperv-daemons-0-0.29.20180415git.el8.x86_64
hypervkvpd-0-0.29.20180415git.el8.x86_64
hypervvssd-0-0.29.20180415git.el8.x86_64
hypervfcopyd-0-0.29.20180415git.el8.x86_64
[root@bootp-73-199-150 ~]# rpm -qa | grep -i selinux
selinux-policy-targeted-3.14.3-44.el8.noarch
libselinux-utils-2.9-3.el8.x86_64
rpm-plugin-selinux-4.14.3-3.el8.x86_64
container-selinux-2.132.0-1.module+el8.3.0+6610+08b5df2f.noarch
libselinux-2.9-3.el8.x86_64
flatpak-selinux-1.6.2-2.el8.noarch
python3-libselinux-2.9-3.el8.x86_64
selinux-policy-3.14.3-44.el8.noarch
How reproducible:
50%
Steps to Reproduce:
1. Execute the lisa auto test case “https://github.com/LIS/lis-test/blob/master/WS2012R2/lisa/setupscripts/KVP_TestRescind.ps1."
2. Check the avc log, get the following denied log.
# cat /var/log/audit/audit.log | grep -i avc
type=AVC msg=audit(1586508667.353:568): avc: denied { module_request } for pid=22568 comm="hypervkvpd" kmod="char-major-10-57" scontext=system_u:system_r:hypervkvp_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system permissive=0
Actual results:
There are error messages in /var/log/audit/audit.log
Expected results:
No error message in /var/log/audit/audit.log
Additional info:
- It's a regression issue. No this issue on RHEL 8.2 kernel 4.18.0-193.el8.x86_64 and hyperv-daemons-0-0.28.20180415git.el8.x86_64.
- Try manual enable and disable "Data Exchange" in the "Integration Services" of Hyper-V Manager, cannot reproduce this issue yet.
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 (selinux-policy 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:4528