Bug 2374161 - SELinux is preventing /usr/bin/virtqemud from 'getattr' accesses on the directory /dev/binderfs.
Summary: SELinux is preventing /usr/bin/virtqemud from 'getattr' accesses on the direc...
Keywords:
Status: CLOSED DUPLICATE of bug 2370706
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 42
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9cb0c8113fd8c33f59497d3b9b0...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-21 13:18 UTC by Mr. Beedell, Roke Julian Lockhart (RJLB)
Modified: 2025-12-19 08:48 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-12-19 08:48:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.61 KB, text/plain)
2025-06-21 13:18 UTC, Mr. Beedell, Roke Julian Lockhart (RJLB)
no flags Details
File: os_info (767 bytes, text/plain)
2025-06-21 13:18 UTC, Mr. Beedell, Roke Julian Lockhart (RJLB)
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2374162 0 unspecified ASSIGNED SELinux is preventing /usr/bin/virtstoraged from 'setattr' accesses on the directory /home/RokeJulianLockhart/Downloads/... 2025-08-11 17:48:27 UTC

Internal Links: 2374165

Description Mr. Beedell, Roke Julian Lockhart (RJLB) 2025-06-21 13:18:12 UTC
Description of problem:
I created an `openSUSE-Tumbleweed-NET-x86_64-Snapshot20250618-Media.iso` VM in `virt-manager-5.0.0-2.fc42.noarch`.
SELinux is preventing /usr/bin/virtqemud from 'getattr' accesses on the directory /dev/binderfs.

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

If you believe that virtqemud should be allowed getattr access on the binderfs directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# 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                   /usr/bin/virtqemud
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           libvirt-daemon-driver-qemu-11.0.0-2.fc42.x86_64
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.43-1.fc42.noarch
Local Policy RPM              selinux-policy-targeted-41.43-1.fc42.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.14.11-300.fc42.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Tue Jun 10 16:24:16 UTC 2025
                              x86_64
Alert Count                   1
First Seen                    2025-06-21 14:15:34 BST
Last Seen                     2025-06-21 14:15:34 BST
Local ID                      650cbbac-bbdb-4b25-9203-08515835c57a

Raw Audit Messages
type=AVC msg=audit(1750511734.651:433): avc:  denied  { getattr } for  pid=107418 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


type=SYSCALL msg=audit(1750511734.651:433): arch=x86_64 syscall=newfstatat success=yes exit=0 a0=ffffff9c a1=7f770403f580 a2=7f77133fcf90 a3=0 items=1 ppid=107417 pid=107418 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=rpc-virtqemud exe=/usr/bin/virtqemud subj=system_u:system_r:virtqemud_t:s0 key=(null)

type=CWD msg=audit(1750511734.651:433): cwd=/

type=PATH msg=audit(1750511734.651:433): item=0 name=/dev/binderfs inode=1 dev=00:25 mode=040755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:binderfs_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0

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

Version-Release number of selected component:
selinux-policy-targeted-41.43-1.fc42.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing /usr/bin/virtqemud from 'getattr' accesses on the directory /dev/binderfs.
package:        selinux-policy-targeted-41.43-1.fc42.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.14.11-300.fc42.x86_64
comment:        I created an `openSUSE-Tumbleweed-NET-x86_64-Snapshot20250618-Media.iso` VM in `virt-manager-5.0.0-2.fc42.noarch`.
component:      selinux-policy

Comment 1 Mr. Beedell, Roke Julian Lockhart (RJLB) 2025-06-21 13:18:15 UTC
Created attachment 2094610 [details]
File: description

Comment 2 Mr. Beedell, Roke Julian Lockhart (RJLB) 2025-06-21 13:18:16 UTC
Created attachment 2094611 [details]
File: os_info

Comment 3 jjanasek 2025-12-19 08:48:17 UTC

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


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