Bug 2364279

Summary: SELinux is preventing rpc-virtqemud from 'getattr' accesses on the 目录 /dev/binderfs.
Product: [Fedora] Fedora Reporter: jesseguotech
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 42CC: dwalsh, jesseguotech, lvrabec, mmalik, omosnacek, pkoncity, 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:28:01 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 jesseguotech 2025-05-06 03:24:00 UTC
Description of problem:
在使用系统虚拟管理器启动虚拟机(由@virtulalization包组提供)时发生(系统中装有waydroid 这可能于此有关)
SELinux is preventing rpc-virtqemud from 'getattr' accesses on the 目录 /dev/binderfs.

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

如果你相信 rpc-virtqemud应该允许_BASE_PATH getattr 访问 binderfs directory默认情况下。
Then 应该将这个情况作为 bug 报告。
可以生成本地策略模块以允许此访问。
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:binderfs_t:s0
Target Objects                /dev/binderfs [ dir ]
Source                        rpc-virtqemud
Source Path                   rpc-virtqemud
Port                          <未知>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.38-1.fc42.noarch
Local Policy RPM              selinux-policy-targeted-41.38-1.fc42.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.14.4-300.fc42.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Apr 25 15:43:38 UTC 2025
                              x86_64
Alert Count                   1
First Seen                    2025-05-06 00:25:34 CST
Last Seen                     2025-05-06 00:25:34 CST
Local ID                      b8d49e10-e095-42dc-8910-c471315251a6

Raw Audit Messages
type=AVC msg=audit(1746462334.473:381): avc:  denied  { getattr } for  pid=9201 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.38-1.fc42.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing rpc-virtqemud from 'getattr' accesses on the 目录 /dev/binderfs.
package:        selinux-policy-targeted-41.38-1.fc42.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.14.4-300.fc42.x86_64
comment:        在使用系统虚拟管理器启动虚拟机(由@virtulalization包组提供)时发生(系统中装有waydroid 这可能于此有关)
component:      selinux-policy

Comment 1 jesseguotech 2025-05-06 03:24:04 UTC
Created attachment 2088563 [details]
File: description

Comment 2 jesseguotech 2025-05-06 03:24:07 UTC
Created attachment 2088564 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-05-06 06:28:01 UTC

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