Bug 2031415

Summary: SELinux is preventing qemu-system-x86 from 'map' accesses on the anon_inode anon_inode.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f13538195eecfc669e909a5a0786561a3b1ac213da026e0fcb16c787d5705138;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-14 19:20:45 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 Mikhail 2021-12-11 20:35:01 UTC
Description of problem:
SELinux is preventing qemu-system-x86 from 'map' accesses on the anon_inode anon_inode.

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

If you believe that qemu-system-x86 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-x86' --raw | audit2allow -M my-qemusystemx86
# semodule -X 300 -i my-qemusystemx86.pp

Additional Information:
Source Context                system_u:system_r:svirt_t:s0:c761,c927
Target Context                system_u:object_r:svirt_t:s0:c761,c927
Target Objects                anon_inode [ anon_inode ]
Source                        qemu-system-x86
Source Path                   qemu-system-x86
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-35.6-1.fc36.noarch
Local Policy RPM              selinux-policy-targeted-35.6-1.fc36.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.16.0-
                              0.rc4.20211207gitcd8c917a56f2.30.fc36.x86_64 #1
                              SMP PREEMPT Tue Dec 7 18:35:28 UTC 2021 x86_64
                              x86_64
Alert Count                   3
First Seen                    2021-12-11 03:16:23 +05
Last Seen                     2021-12-11 03:16:23 +05
Local ID                      b9aa0e14-91e4-4d2c-8ed8-dd3d0dec7775

Raw Audit Messages
type=AVC msg=audit(1639174583.925:988): avc:  denied  { map } for  pid=412283 comm="qemu-system-x86" path="anon_inode:[io_uring]" dev="anon_inodefs" ino=86469041 scontext=system_u:system_r:svirt_t:s0:c761,c927 tcontext=system_u:object_r:svirt_t:s0:c761,c927 tclass=anon_inode permissive=0


Hash: qemu-system-x86,svirt_t,svirt_t,anon_inode,map

Version-Release number of selected component:
selinux-policy-targeted-35.6-1.fc36.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.16.0-0.rc4.20211207gitcd8c917a56f2.31.fc36.x86_64
type:           libreport

Potential duplicate: bug 2025714

Comment 1 Zdenek Pytela 2021-12-14 19:20:45 UTC

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