Bug 2343444

Summary: SELinux is preventing rpc-virtqemud from 'getattr' accesses on the cartella /dev/binderfs.
Product: [Fedora] Fedora Reporter: Sfrg <sfrg47>
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, lvrabec, mmalik, omosnacek, pkoncity, sfrg47, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9cb0c8113fd8c33f59497d3b9b06700e0f5a1cf9f7af95c6aba3a3ef6ecfb9a2;VARIANT_ID=kde;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-06 06:27:54 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 Sfrg 2025-02-03 00:28:57 UTC
Description of problem:
Open guest windows vm in virtio
SELinux is preventing rpc-virtqemud from 'getattr' accesses on the cartella /dev/binderfs.

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

Se si ritiene che a rpc-virtqemud debba essere consentito l'accesso getattr su directory binderfs per impostazione predefinita.
Then si dovrebbe segnalare il problema come bug.
È possibile generare un modulo di politica locale per consentire questo accesso.
Do
consentire questo accesso per ora eseguendo:
# ausearch -c 'rpc-virtqemud' --raw | audit2allow -M my-$MODULE_NOME
# semodule -X 300 -i mio-rpcvirtqemud.pp

Additional Information:
Source Context                system_u:system_r:virtqemud_t:s0
Target Context                system_u:object_r:binderfs_t:s0
Target Objects                /dev/binderfs [ dir ]
Source                        rpc-virtqemud
Source Path                   rpc-virtqemud
Port                          <Sconosciuto>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.28-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.28-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.12.10-200.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Jan 17 18:05:24 UTC 2025
                              x86_64
Alert Count                   7
First Seen                    2024-08-05 21:14:19 CEST
Last Seen                     2025-02-03 01:19:21 CET
Local ID                      f61c84aa-157a-4fdc-994b-7334740d4d7a

Raw Audit Messages
type=AVC msg=audit(1738541961.39:875): avc:  denied  { getattr } for  pid=40259 comm="rpc-virtqemud" path="/dev/binderfs" dev="binder" ino=1 scontext=system_u:system_r:virtqemud_t:s0 tcontext=system_u:object_r:binderfs_t:s0 tclass=dir permissive=1


Hash: rpc-virtqemud,virtqemud_t,binderfs_t,dir,getattr

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

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing rpc-virtqemud from 'getattr' accesses on the cartella /dev/binderfs.
package:        selinux-policy-targeted-41.28-1.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.12.10-200.fc41.x86_64
comment:        Open guest windows vm in virtio
component:      selinux-policy

Comment 1 Sfrg 2025-02-03 00:28:59 UTC
Created attachment 2074923 [details]
File: description

Comment 2 Sfrg 2025-02-03 00:29:00 UTC
Created attachment 2074924 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-05-06 06:27:54 UTC

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