Bug 2051195

Summary: SELinux is preventing qemu-system-i38 from 'map' accesses on the anon_inode anon_inode.
Product: [Fedora] Fedora Reporter: NM <andrew.kavalov>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:accad2c0839432cb1e4e758d3e69c888396056ed7cfffd22be793000af047237;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-07 09:13:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description NM 2022-02-06 15:28:08 UTC
Description of problem:
Opend Virtual Machine Manager v3.2.0
SELinux is preventing qemu-system-i38 from 'map' accesses on the anon_inode anon_inode.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that qemu-system-i38 should be allowed map access on the anon_inode anon_inode by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'qemu-system-i38' --raw | audit2allow -M my-qemusystemi38
# semodule -X 300 -i my-qemusystemi38.pp

Additional Information:
Source Context                system_u:system_r:virtd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:virtd_t:s0
Target Objects                anon_inode [ anon_inode ]
Source                        qemu-system-i38
Source Path                   qemu-system-i38
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-35.13-1.fc35.noarch
Local Policy RPM              selinux-policy-targeted-35.13-1.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.16.5-200.fc35.x86_64 #1 SMP
                              PREEMPT Tue Feb 1 21:37:11 UTC 2022 x86_64 x86_64
Alert Count                   6
First Seen                    2022-02-06 10:26:01 EST
Last Seen                     2022-02-06 10:26:01 EST
Local ID                      e74578cd-1fad-4138-8065-1bf2ac19dd99

Raw Audit Messages
type=AVC msg=audit(1644161161.573:666): avc:  denied  { map } for  pid=15143 comm="qemu-system-i38" path="anon_inode:[io_uring]" dev="anon_inodefs" ino=148882 scontext=system_u:system_r:virtd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:virtd_t:s0 tclass=anon_inode permissive=0


Hash: qemu-system-i38,virtd_t,virtd_t,anon_inode,map

Version-Release number of selected component:
selinux-policy-targeted-35.13-1.fc35.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.16.5-200.fc35.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2022-02-07 09:13:00 UTC

*** This bug has been marked as a duplicate of bug 2025714 ***