Bug 2417858

Summary: SELinux is preventing spice-vdagentd from 'getattr' accesses on the filesystem /.
Product: [Fedora] Fedora Reporter: Matt Fagnani <matt.fagnani>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, lvrabec, matt.fagnani, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:3dfc99e2aa46f5291b97b3e2acea03e849968aa471775ceeb85fec84e0755746;VARIANT_ID=kde;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: os_info
none
File: description none

Description Matt Fagnani 2025-11-30 09:30:11 UTC
Description of problem:
I booted the Fedora Rawhide KDE live image Fedora-KDE-Desktop-Live-Rawhide-20251130.n.0.x86_64.iso in a QEMU/KVM VM in GNOME Boxes. When Plasma started, an SELinux denial notification was shown. spice-vdagentd was denied getting attributes of / when it started.
SELinux is preventing spice-vdagentd from 'getattr' accesses on the filesystem /.

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

If you believe that spice-vdagentd should be allowed getattr access on the  filesystem 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 'spice-vdagentd' --raw | audit2allow -M my-spicevdagentd
# semodule -X 300 -i my-spicevdagentd.pp

Additional Information:
Source Context                system_u:system_r:vdagent_t:s0
Target Context                system_u:object_r:pidfs_t:s0
Target Objects                / [ filesystem ]
Source                        spice-vdagentd
Source Path                   spice-vdagentd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-42.17-1.fc44.noarch
Local Policy RPM              selinux-policy-targeted-42.17-1.fc44.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              6.18.0-0.rc7.251129g19eef1d98eed.63.fc44.x86_64 #1
                              SMP PREEMPT_DYNAMIC Sat Nov 29 16:16:32 UTC 2025
                              x86_64
Alert Count                   1
First Seen                    2025-11-30 09:20:21 UTC
Last Seen                     2025-11-30 09:20:21 UTC
Local ID                      85e3b009-a27a-4be8-8ed7-ebfbd6a86551

Raw Audit Messages
type=AVC msg=audit(1764494421.361:154): avc:  denied  { getattr } for  pid=2498 comm="spice-vdagentd" name="/" dev="pidfs" ino=1 scontext=system_u:system_r:vdagent_t:s0 tcontext=system_u:object_r:pidfs_t:s0 tclass=filesystem permissive=0


Hash: spice-vdagentd,vdagent_t,pidfs_t,filesystem,getattr

Version-Release number of selected component:
selinux-policy-targeted-42.17-1.fc44.noarch

Additional info:
reporter:       libreport-2.17.15
comment:        I booted the Fedora Rawhide KDE live image Fedora-KDE-Desktop-Live-Rawhide-20251130.n.0.x86_64.iso in a QEMU/KVM VM in GNOME Boxes. When Plasma started, an SELinux denial notification was shown. spice-vdagentd was denied getting attributes of / when it started.
kernel:         6.18.0-0.rc7.251129g19eef1d98eed.63.fc44.x86_64
type:           libreport
hashmarkername: setroubleshoot
component:      selinux-policy
package:        selinux-policy-targeted-42.17-1.fc44.noarch
reason:         SELinux is preventing spice-vdagentd from 'getattr' accesses on the filesystem /.
component:      selinux-policy

Comment 1 Matt Fagnani 2025-11-30 09:30:13 UTC
Created attachment 2116733 [details]
File: os_info

Comment 2 Matt Fagnani 2025-11-30 09:30:14 UTC
Created attachment 2116734 [details]
File: description