Bug 2356212 - SELinux is preventing rpc-virtqemud from 'relabelfrom' accesses on the lnk_file discowin.
Summary: SELinux is preventing rpc-virtqemud from 'relabelfrom' accesses on the lnk_fi...
Keywords:
Status: CLOSED DUPLICATE of bug 2359843
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 41
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6333f1d7088ac0d569ca3fd25e1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-31 13:18 UTC by Victoriano Giralt
Modified: 2025-04-23 11:30 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-04-23 11:30:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.98 KB, text/plain)
2025-03-31 13:18 UTC, Victoriano Giralt
no flags Details
File: os_info (719 bytes, text/plain)
2025-03-31 13:18 UTC, Victoriano Giralt
no flags Details

Description Victoriano Giralt 2025-03-31 13:18:17 UTC
Description of problem:
I was starting a qemu guest controlled by virt-manager
SELinux is preventing rpc-virtqemud from 'relabelfrom' accesses on the lnk_file discowin.

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

Si cree que de manera predeterminada se debería permitir a rpc-virtqemud el acceso relabelfrom sobre  discowin lnk_file.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
permita el acceso temporalmente ejecutando:
# ausearch -c 'rpc-virtqemud' --raw | audit2allow -M mi-rpcvirtqemud
# semodule -X 300 -i mi-rpcvirtqemud.pp

Additional Information:
Source Context                system_u:system_r:virtqemud_t:s0
Target Context                system_u:object_r:tmpfs_t:s0
Target Objects                discowin [ lnk_file ]
Source                        rpc-virtqemud
Source Path                   rpc-virtqemud
Port                          <Desconocido>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.34-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.34-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.13.8-200.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sun Mar 23 05:03:09 UTC 2025
                              x86_64
Alert Count                   3
First Seen                    2025-03-29 12:40:23 CET
Last Seen                     2025-03-31 15:15:28 CEST
Local ID                      5231c8bb-7a05-40b1-a269-32a34a076a53

Raw Audit Messages
type=AVC msg=audit(1743426928.485:914): avc:  denied  { relabelfrom } for  pid=47324 comm="rpc-virtqemud" name="discowin" dev="tmpfs" ino=7 scontext=system_u:system_r:virtqemud_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=lnk_file permissive=1


Hash: rpc-virtqemud,virtqemud_t,tmpfs_t,lnk_file,relabelfrom

Version-Release number of selected component:
selinux-policy-targeted-41.34-1.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
package:        selinux-policy-targeted-41.34-1.fc41.noarch
kernel:         6.13.8-200.fc41.x86_64
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
reason:         SELinux is preventing rpc-virtqemud from 'relabelfrom' accesses on the lnk_file discowin.
comment:        I was starting a qemu guest controlled by virt-manager
component:      selinux-policy

Comment 1 Victoriano Giralt 2025-03-31 13:18:20 UTC
Created attachment 2082784 [details]
File: description

Comment 2 Victoriano Giralt 2025-03-31 13:18:22 UTC
Created attachment 2082785 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-04-23 11:30:58 UTC

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


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