Bug 2047947 - SELinux is preventing qemu-system-x86 from 'map' accesses on the anon_inode anon_inode.
Summary: SELinux is preventing qemu-system-x86 from 'map' accesses on the anon_inode a...
Keywords:
Status: CLOSED DUPLICATE of bug 2025714
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 35
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2c3c6f3d1ec4e9378980a74dd89...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-28 22:40 UTC by Ian Laurie
Modified: 2022-01-28 22:45 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-01-28 22:45:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ian Laurie 2022-01-28 22:40:29 UTC
Description of problem:
I simply logged in and this happened.
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:virtd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:virtd_t:s0
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.11-1.fc35.noarch
Local Policy RPM              selinux-policy-targeted-35.11-1.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.16.3-200.fc35.x86_64 #1 SMP
                              PREEMPT Thu Jan 27 15:17:19 UTC 2022 x86_64 x86_64
Alert Count                   1
First Seen                    2022-01-30 02:54:29 AEDT
Last Seen                     2022-01-30 02:54:29 AEDT
Local ID                      2d1ffa3f-aec8-4fd8-bb8d-e1caeb694696

Raw Audit Messages
type=AVC msg=audit(1643471669.395:271): avc:  denied  { map } for  pid=3591 comm="qemu-system-x86" path="anon_inode:[io_uring]" dev="anon_inodefs" ino=34682 scontext=system_u:system_r:virtd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:virtd_t:s0 tclass=anon_inode permissive=1


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

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

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

Potential duplicate: bug 2028275

Comment 1 Ian Laurie 2022-01-28 22:45:08 UTC

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


Note You need to log in before you can comment on or make changes to this bug.