Bug 1317130 - SELinux is preventing spice-vdagent from 'getattr' accesses on the chr_file /dev/vport0p1.
Summary: SELinux is preventing spice-vdagent from 'getattr' accesses on the chr_file /...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 24
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f7c097f20594e933851db3904af...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-12 11:10 UTC by Joachim Frieben
Modified: 2016-04-12 11:04 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-180.fc24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-12 11:04:21 UTC
Type: ---


Attachments (Terms of Use)

Description Joachim Frieben 2016-03-12 11:10:49 UTC
Description of problem:
SELinux is preventing spice-vdagent from 'getattr' accesses on the chr_file /dev/vport0p1.

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

If you believe that spice-vdagent should be allowed getattr access on the vport0p1 chr_file 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:
# grep spice-vdagent /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:virtio_device_t:s0
Target Objects                /dev/vport0p1 [ chr_file ]
Source                        spice-vdagent
Source Path                   spice-vdagent
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-178.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.5.0-0.rc7.git0.2.fc24.x86_64 #1
                              SMP Tue Mar 8 02:20:08 UTC 2016 x86_64 x86_64
Alert Count                   4
First Seen                    2016-03-12 11:37:13 CET
Last Seen                     2016-03-12 12:08:39 CET
Local ID                      570d31fc-2a35-4472-993b-eff0a335858e

Raw Audit Messages
type=AVC msg=audit(1457780919.151:287): avc:  denied  { getattr } for  pid=1315 comm="spice-vdagent" path="/dev/vport0p1" dev="devtmpfs" ino=11403 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:virtio_device_t:s0 tclass=chr_file permissive=0


Hash: spice-vdagent,xdm_t,virtio_device_t,chr_file,getattr

Version-Release number of selected component:
selinux-policy-3.13.1-178.fc24.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.5.0-0.rc7.git0.2.fc24.x86_64
type:           libreport

Potential duplicate: bug 723287


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