Bug 2271086 - SELinux is preventing qemu-img from 'create' accesses on the anon_inode Desconhecido.
Summary: SELinux is preventing qemu-img from 'create' accesses on the anon_inode Desco...
Keywords:
Status: CLOSED DUPLICATE of bug 2278123
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 40
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a82f99e4908feab6b3670ed46b2...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-03-22 15:30 UTC by Geraldo Simião
Modified: 2024-05-02 12:57 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-02 12:57:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.93 KB, text/plain)
2024-03-22 15:30 UTC, Geraldo Simião
no flags Details
File: os_info (721 bytes, text/plain)
2024-03-22 15:30 UTC, Geraldo Simião
no flags Details

Description Geraldo Simião 2024-03-22 15:30:42 UTC
Description of problem:
creating vm at virt-manager (already tryed relabel the system)
SELinux is preventing qemu-img from 'create' accesses on the anon_inode Desconhecido.

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

Se você acredita nisso qemu-img deve ser permitido create acesso no Desconhecido anon_inode por padrão.
Then você deve informar que este é um erro.
Você pode gerar um módulo de política local para permitir este acesso.
Do
permitir este acesso por agora executando:
# ausearch -c 'qemu-img' --raw | audit2allow -M my-qemuimg
# semodule -X 300 -i my-qemuimg.pp

Additional Information:
Source Context                system_u:system_r:virtstoraged_t:s0
Target Context                system_u:object_r:io_uring_t:s0
Target Objects                Desconhecido [ anon_inode ]
Source                        qemu-img
Source Path                   qemu-img
Port                          <Desconhecido>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-40.15-1.fc40.noarch
Local Policy RPM              selinux-policy-targeted-40.15-1.fc40.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.8.1-300.fc40.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Wed Mar 20 04:39:30 UTC 2024
                              x86_64
Alert Count                   1
First Seen                    2024-03-22 12:23:41 -03
Last Seen                     2024-03-22 12:23:41 -03
Local ID                      7461c70c-9a64-42f5-8961-ff15d7c23f54

Raw Audit Messages
type=AVC msg=audit(1711121021.454:245): avc:  denied  { create } for  pid=3891 comm="qemu-img" anonclass=[io_uring] scontext=system_u:system_r:virtstoraged_t:s0 tcontext=system_u:object_r:io_uring_t:s0 tclass=anon_inode permissive=1


Hash: qemu-img,virtstoraged_t,io_uring_t,anon_inode,create

Version-Release number of selected component:
selinux-policy-targeted-40.15-1.fc40.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing qemu-img from 'create' accesses on the anon_inode Desconhecido.
package:        selinux-policy-targeted-40.15-1.fc40.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.8.1-300.fc40.x86_64
comment:        creating vm at virt-manager (already tryed relabel the system)
component:      selinux-policy

Comment 1 Geraldo Simião 2024-03-22 15:30:45 UTC
Created attachment 2023089 [details]
File: description

Comment 2 Geraldo Simião 2024-03-22 15:30:47 UTC
Created attachment 2023090 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-05-02 12:57:49 UTC

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


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