Bug 2359843

Summary: SELinux is preventing rpc-virtqemud from 'relabelfrom' accesses on the lnk_file win10.
Product: [Fedora] Fedora Reporter: KsenkoLopa <ksenko.lopa>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 42CC: dwalsh, ksenko.lopa, lvrabec, mmalik, omosnacek, pkoncity, vic, vmojzis, zpytela
Target Milestone: ---Flags: zpytela: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6333f1d7088ac0d569ca3fd25e1444949ff44dfe640a7c8bdc9f1c4acf9f592b;VARIANT_ID=;
Fixed In Version: selinux-policy-41.39-1.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-07 03:21:23 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-15 19:51:36 UTC
Description of problem:
SELinux is preventing rpc-virtqemud from 'relabelfrom' accesses on the lnk_file win10.

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

Если вы считаете, что rpc-virtqemud должно быть разрешено relabelfrom доступ к win10 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                win10 [ 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.36-1.fc42.noarch
Local Policy RPM              selinux-policy-targeted-41.36-1.fc42.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.14.2-300.fc42.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Apr 10 21:50:55 UTC 2025
                              x86_64
Alert Count                   2
First Seen                    2025-04-16 01:06:48 +06
Last Seen                     2025-04-16 01:13:27 +06
Local ID                      a0437491-9139-4ab0-b596-83e9172c7acc

Raw Audit Messages
type=AVC msg=audit(1744744407.650:300): avc:  denied  { relabelfrom } for  pid=9366 comm="rpc-virtqemud" name="win10" 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.36-1.fc42.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing rpc-virtqemud from 'relabelfrom' accesses on the lnk_file win10.
component:      selinux-policy
package:        selinux-policy-targeted-41.36-1.fc42.noarch
hashmarkername: setroubleshoot
kernel:         6.14.2-300.fc42.x86_64
type:           libreport
component:      selinux-policy

Comment 1 KsenkoLopa 2025-04-15 19:51:39 UTC
Created attachment 2085082 [details]
File: description

Comment 2 KsenkoLopa 2025-04-15 19:51:41 UTC
Created attachment 2085083 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-04-23 11:20:27 UTC
*** Bug 2357711 has been marked as a duplicate of this bug. ***

Comment 4 Zdenek Pytela 2025-04-23 11:30:58 UTC
*** Bug 2356212 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2025-05-02 07:41:22 UTC
FEDORA-2025-d1510e7fa1 (selinux-policy-41.39-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-d1510e7fa1

Comment 6 Fedora Update System 2025-05-03 02:50:01 UTC
FEDORA-2025-d1510e7fa1 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-d1510e7fa1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-d1510e7fa1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2025-05-07 03:21:23 UTC
FEDORA-2025-d1510e7fa1 (selinux-policy-41.39-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.