Bug 2417858 - SELinux is preventing spice-vdagentd from 'getattr' accesses on the filesystem /.
Summary: SELinux is preventing spice-vdagentd from 'getattr' accesses on the filesyste...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3dfc99e2aa46f5291b97b3e2ace...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-30 09:30 UTC by Matt Fagnani
Modified: 2025-11-30 09:30 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (753 bytes, text/plain)
2025-11-30 09:30 UTC, Matt Fagnani
no flags Details
File: description (1.96 KB, text/plain)
2025-11-30 09:30 UTC, Matt Fagnani
no flags Details

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


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