Bug 1822518
| Summary: | RDMA migration succeeds but there is audit error "AVC denied qemu-kvm create netlink_rdma_socket" | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Fangge Jin <fjin> |
| Component: | libvirt | Assignee: | Virtualization Maintenance <virt-maint> |
| Status: | CLOSED WONTFIX | QA Contact: | Fangge Jin <fjin> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | CC: | chhu, dgilbert, jsuchane, lmen, mprivozn, virt-maint, xuzhang, yafu |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-10-09 07:27:08 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1897025 | ||
Hi,
Can you check your /etc/libvirt/qemu.conf, you may need to add /dev/infiniband stuff to cgroup_device_acl, in my config I have:
cgroup_device_acl = [
"/dev/null", "/dev/full", "/dev/zero",
"/dev/random", "/dev/urandom",
"/dev/ptmx", "/dev/kvm",
"/dev/rtc","/dev/hpet",
"/dev/infiniband/rdma_cm",
"/dev/infiniband/issm0",
"/dev/infiniband/issm1",
"/dev/infiniband/umad0",
"/dev/infiniband/umad1",
"/dev/infiniband/uverbs0"
]
(the /dev/mapper/control is weirder though)
(In reply to Dr. David Alan Gilbert from comment #2) > > (the /dev/mapper/control is weirder though) This is tracked in bug 1822522. Nevertheless, it's still weird. Also, which RDMA card is this? I see https://bugzilla.redhat.com/show_bug.cgi?id=1786670 but that seems to only by Intel Omni path 1) I have cgroup_device_acl configured correctly, or migration will fail. 2) The RDMA card I used is: 3b:00.0 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4] Bulk update: Move RHEL-AV bugs to RHEL9. If necessary to resolve in RHEL8, then clone to the current RHEL8 release. After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |
Description of problem: Do RDMA migration, migration succeeds, but there is audit error on target host. Version-Release number of selected component: qemu-kvm-4.2.0-17.module+el8.2.0+6141+0f540f16.x86_64 selinux-policy-3.14.3-41.el8.noarch libvirt-6.0.0-17.module+el8.2.0+6257+0d066c28.x86_64 How reproducible: 100% Steps to Reproduce: 1. Setup rdma migration env 2. Start a vm, and do migration: # virsh migrate rhev qemu+ssh://*****/system --live --verbose --p2p --listen-address 0.0.0.0 --migrateuri rdma://192.168.100.8 [100%] 3. After migration completes, check audit message on target host: # ausearch -c qemu-kvm -m avc ---- time->Thu Apr 9 04:55:29 2020 type=AVC msg=audit(1586422529.809:350): avc: denied { read write } for pid=3449 comm="qemu-kvm" path="/dev/mapper/control" dev="devtmpfs" ino=25607 scontext=system_u:system_r:svirt_t:s0:c116,c867 tcontext=system_u:object_r:lvm_control_t:s0 tclass=chr_file permissive=0 ---- time->Thu Apr 9 04:55:30 2020 type=AVC msg=audit(1586422530.256:351): avc: denied { create } for pid=3449 comm="qemu-kvm" scontext=system_u:system_r:svirt_t:s0:c116,c867 tcontext=system_u:system_r:svirt_t:s0:c116,c867 tclass=netlink_rdma_socket permissive=0 ---- time->Thu Apr 9 04:55:30 2020 type=AVC msg=audit(1586422530.256:352): avc: denied { create } for pid=3449 comm="qemu-kvm" scontext=system_u:system_r:svirt_t:s0:c116,c867 tcontext=system_u:system_r:svirt_t:s0:c116,c867 tclass=netlink_rdma_socket permissive=0 ---- time->Thu Apr 9 04:55:30 2020 type=AVC msg=audit(1586422530.279:362): avc: denied { create } for pid=3449 comm="qemu-kvm" scontext=system_u:system_r:svirt_t:s0:c116,c867 tcontext=system_u:system_r:svirt_t:s0:c116,c867 tclass=netlink_rdma_socket permissive=0 Actual results: As above Expected results: No error in audit log Additional info: