Bug 1046978 - SELinux is preventing /usr/bin/Xorg from read, write access on the chr_file vga_arbiter.
Summary: SELinux is preventing /usr/bin/Xorg from read, write access on the chr_file v...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:aa153e71149a018117dbad6392b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-27 21:29 UTC by edo
Modified: 2014-01-16 07:11 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-116.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-16 07:11:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description edo 2013-12-27 21:29:28 UTC
Description of problem:
SELinux is preventing /usr/bin/Xorg from read, write access on the chr_file vga_arbiter.

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

If you believe that Xorg should be allowed read write access on the vga_arbiter 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 Xorg /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:bumblebee_t:s0
Target Context                system_u:object_r:xserver_misc_device_t:s0
Target Objects                vga_arbiter [ chr_file ]
Source                        Xorg
Source Path                   /usr/bin/Xorg
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xorg-x11-server-Xorg-1.14.4-5.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-106.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.12.6-300.fc20.x86_64 #1 SMP Mon
                              Dec 23 16:44:31 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-12-27 22:25:27 CET
Last Seen                     2013-12-27 22:25:27 CET
Local ID                      a955bcc8-48c1-4ebc-ac56-c899de7b8e73

Raw Audit Messages
type=AVC msg=audit(1388179527.165:621): avc:  denied  { read write } for  pid=7765 comm="Xorg" name="vga_arbiter" dev="devtmpfs" ino=1026 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:xserver_misc_device_t:s0 tclass=chr_file


type=AVC msg=audit(1388179527.165:621): avc:  denied  { open } for  pid=7765 comm="Xorg" path="/dev/vga_arbiter" dev="devtmpfs" ino=1026 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:xserver_misc_device_t:s0 tclass=chr_file


type=SYSCALL msg=audit(1388179527.165:621): arch=x86_64 syscall=open success=yes exit=EACCES a0=3499a0684c a1=80002 a2=0 a3=7fffd8baa7c0 items=0 ppid=630 pid=7765 auid=4294967295 uid=0 gid=1001 euid=0 suid=0 fsuid=0 egid=1001 sgid=1001 fsgid=1001 ses=4294967295 tty=(none) comm=Xorg exe=/usr/bin/Xorg subj=system_u:system_r:bumblebee_t:s0 key=(null)

Hash: Xorg,bumblebee_t,xserver_misc_device_t,chr_file,read,write

Additional info:
reporter:       libreport-2.1.10
hashmarkername: setroubleshoot
kernel:         3.12.6-300.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-01-06 14:32:11 UTC
commit cd004157ec828f083363fe9e7214135fc7ba5cf3
Author: Miroslav Grepl <mgrepl>
Date:   Mon Jan 6 14:56:23 2014 +0100

    Xorg should not be running as bumblebee_t

Comment 2 Fedora Update System 2014-01-13 22:57:24 UTC
selinux-policy-3.12.1-116.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-116.fc20

Comment 3 Fedora Update System 2014-01-15 05:58:56 UTC
Package selinux-policy-3.12.1-116.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-116.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0806/selinux-policy-3.12.1-116.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-01-16 07:11:58 UTC
selinux-policy-3.12.1-116.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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