Bug 2271086

Summary: SELinux is preventing qemu-img from 'create' accesses on the anon_inode Desconhecido.
Product: [Fedora] Fedora Reporter: Geraldo Simião <geraldo.simiao.kutz>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 40CC: dwalsh, geraldo.simiao.kutz, knazekovan, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:a82f99e4908feab6b3670ed46b295f523e066874fa888ba8710d1cf8fcf0cb9d;VARIANT_ID=kde;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-02 12:57:49 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:
Attachments:
Description Flags
File: description
none
File: os_info none

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 ***