Bug 2058029 - SELinux is preventing qemu-kvm from 'map' accesses on the anon_inode anon_inode.
Summary: SELinux is preventing qemu-kvm from 'map' accesses on the anon_inode anon_inode.
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:c06394ba47415d67aba2f5dbf17...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-24 10:16 UTC by Jonathan Haas
Modified: 2022-02-24 10:42 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-02-24 10:42:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jonathan Haas 2022-02-24 10:16:37 UTC
Description of problem:
Running a Windows 10 VM in Virt-Manager, dozens of messages appear
SELinux is preventing qemu-kvm from 'map' accesses on the anon_inode anon_inode.

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

Wenn Sie denken, dass es qemu-kvm standardmäßig erlaubt sein sollte, map Zugriff auf anon_inode anon_inode zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# ausearch -c 'qemu-kvm' --raw | audit2allow -M my-qemukvm
# semodule -X 300 -i my-qemukvm.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_t:s0-
                              s0:c0.c1023
Target Context                unconfined_u:object_r:unconfined_t:s0
Target Objects                anon_inode [ anon_inode ]
Source                        qemu-kvm
Source Path                   qemu-kvm
Port                          <Unbekannt>
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.8-200.fc35.x86_64 #1 SMP
                              PREEMPT Tue Feb 8 20:58:59 UTC 2022 x86_64 x86_64
Alert Count                   18
First Seen                    2022-02-24 11:15:22 CET
Last Seen                     2022-02-24 11:15:23 CET
Local ID                      4760ee4c-173a-41ec-a7b1-1ebdaa2058e3

Raw Audit Messages
type=AVC msg=audit(1645697723.47:456): avc:  denied  { map } for  pid=27970 comm="qemu-system-i38" path="anon_inode:[io_uring]" dev="anon_inodefs" ino=260910 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=anon_inode permissive=0


Hash: qemu-kvm,unconfined_t,unconfined_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.8-200.fc35.x86_64
type:           libreport

Potential duplicate: bug 2057718

Comment 1 Zdenek Pytela 2022-02-24 10:42:58 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.