Bug 2357711

Summary: SELinux is preventing rpc-virtqemud from 'relabelfrom' accesses on the lnk_file rocky9.
Product: [Fedora] Fedora Reporter: KsenkoLopa <ksenko.lopa>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 41CC: dwalsh, ksenko.lopa, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6333f1d7088ac0d569ca3fd25e1444949ff44dfe640a7c8bdc9f1c4acf9f592b;VARIANT_ID=;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-04-23 11:20:27 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 KsenkoLopa 2025-04-06 18:37:12 UTC
Description of problem:
SELinux is preventing rpc-virtqemud from 'relabelfrom' accesses on the lnk_file rocky9.

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

Если вы считаете, что rpc-virtqemud должно быть разрешено relabelfrom доступ к rocky9 lnk_file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
разрешить этот доступ сейчас, выполнив:
# ausearch -c 'rpc-virtqemud' --raw | audit2allow -M my-rpcvirtqemud
# semodule -X 300 -i my-rpcvirtqemud.pp

Additional Information:
Source Context                system_u:system_r:virtqemud_t:s0
Target Context                system_u:object_r:tmpfs_t:s0
Target Objects                rocky9 [ lnk_file ]
Source                        rpc-virtqemud
Source Path                   rpc-virtqemud
Port                          <Неизвестно>
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.9-200.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sat Mar 29 01:29:31 UTC 2025
                              x86_64
Alert Count                   7
First Seen                    2025-04-06 22:21:11 +06
Last Seen                     2025-04-06 23:17:10 +06
Local ID                      646c5f6f-7d2e-4300-8a24-c53d9a46f3ff

Raw Audit Messages
type=AVC msg=audit(1743959830.530:504): avc:  denied  { relabelfrom } for  pid=13054 comm="rpc-virtqemud" name="rocky9" dev="tmpfs" ino=8 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
reason:         SELinux is preventing rpc-virtqemud from 'relabelfrom' accesses on the lnk_file rocky9.
component:      selinux-policy
package:        selinux-policy-targeted-41.34-1.fc41.noarch
hashmarkername: setroubleshoot
kernel:         6.13.9-200.fc41.x86_64
type:           libreport
component:      selinux-policy

Comment 1 KsenkoLopa 2025-04-06 18:37:14 UTC
Created attachment 2083615 [details]
File: description

Comment 2 KsenkoLopa 2025-04-06 18:37:16 UTC
Created attachment 2083616 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-04-23 11:20:27 UTC

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