Bug 1046010

Summary: SELinux is preventing /usr/bin/Xorg from 'getattr' accesses on the file /run/udev/data/+input:input22.
Product: [Fedora] Fedora Reporter: cyrushmh <cyrusyzgtt>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, HolyMaster, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:800b0c04193887574d87a2ce7eae4c069b1cd4c08750219abe9ef4c7d4bfc840
Fixed In Version: selinux-policy-3.12.1-116.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-16 07:10:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description cyrushmh 2013-12-23 07:57:41 UTC
Description of problem:
SELinux is preventing /usr/bin/Xorg from 'getattr' accesses on the file /run/udev/data/+input:input22.

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

If 您确定应默认允许 Xorg getattr 访问 +input:input22 file。
Then 您应该将这个情况作为 bug 报告。
您可以生成本地策略模块允许这个访问。
Do
请执行以下命令此时允许这个访问:
# 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:udev_var_run_t:s0
Target Objects                /run/udev/data/+input:input22 [ 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                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.12.5-302.fc20.x86_64 #1 SMP Tue
                              Dec 17 20:42:32 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-12-23 15:55:59 CST
Last Seen                     2013-12-23 15:55:59 CST
Local ID                      930ca473-de84-4253-bfa7-e4fd0876021d

Raw Audit Messages
type=AVC msg=audit(1387785359.621:1594): avc:  denied  { getattr } for  pid=25123 comm="Xorg" path="/run/udev/data/+input:input22" dev="tmpfs" ino=2085008 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:udev_var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1387785359.621:1594): arch=x86_64 syscall=fstat success=yes exit=0 a0=20 a1=7fff752ad0c0 a2=7fff752ad0c0 a3=0 items=0 ppid=4731 pid=25123 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,udev_var_run_t,file,getattr

Additional info:
reporter:       libreport-2.1.10
hashmarkername: setroubleshoot
kernel:         3.12.5-302.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-01-06 15:10:32 UTC
*** Bug 1045818 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2014-01-06 15:10:38 UTC
*** Bug 1045819 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2014-01-06 15:10:42 UTC
*** Bug 1045820 has been marked as a duplicate of this bug. ***

Comment 4 Miroslav Grepl 2014-01-06 15:11:00 UTC
*** Bug 1046316 has been marked as a duplicate of this bug. ***

Comment 5 Miroslav Grepl 2014-01-06 15:17:12 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 6 Fedora Update System 2014-01-13 22:56:29 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 7 Fedora Update System 2014-01-15 05:58:04 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 8 Fedora Update System 2014-01-16 07:10:49 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.