Bug 2052897 - SELinux is preventing qemu-img from 'map' accesses on the anon_inode anon_inode.
Summary: SELinux is preventing qemu-img from 'map' accesses on the anon_inode anon_inode.
Keywords:
Status: CLOSED DUPLICATE of bug 2051577
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 34
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ee022c5784581bb3a7e7503b00a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-10 08:58 UTC by Jeremy Harris
Modified: 2022-02-10 09:47 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-02-10 09:47:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jeremy Harris 2022-02-10 08:58:16 UTC
Description of problem:
dnf update
reboot
start VM via Virtual Machine Manager
SELinux is preventing qemu-img from 'map' accesses on the anon_inode anon_inode.

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

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

Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:object_r:unconfined_t:s0
Target Objects                anon_inode [ anon_inode ]
Source                        qemu-img
Source Path                   qemu-img
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-34.25-1.fc34.noarch
Local Policy RPM              selinux-policy-targeted-34.25-1.fc34.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.16.5-100.fc34.x86_64 #1 SMP
                              PREEMPT Tue Feb 1 20:05:05 UTC 2022 x86_64 x86_64
Alert Count                   92
First Seen                    2022-02-10 08:54:37 GMT
Last Seen                     2022-02-10 08:55:50 GMT
Local ID                      68e91ba8-ab11-4492-991f-31ba14560581

Raw Audit Messages
type=AVC msg=audit(1644483350.986:513): avc:  denied  { map } for  pid=5375 comm="qemu-kvm" path="anon_inode:[io_uring]" dev="anon_inodefs" ino=59941 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-img,unconfined_t,unconfined_t,anon_inode,map

Version-Release number of selected component:
selinux-policy-targeted-34.25-1.fc34.noarch

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

Comment 1 Zdenek Pytela 2022-02-10 09:47:26 UTC

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


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