Bug 1055213

Summary: SELinux is preventing /usr/bin/xkbcomp from 'execute' accesses on the file /usr/bin/xkbcomp.
Product: [Fedora] Fedora Reporter: Zero <HolyMaster>
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, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6d936d56bdb4714edb6453b52c35aebfe1dca42aa5c52c3e153b0e06ee3496d9
Fixed In Version: selinux-policy-3.12.1-119.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-23 11:07:08 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 Zero 2014-01-19 15:45:20 UTC
Description of problem:
SELinux is preventing /usr/bin/xkbcomp from 'execute' accesses on the file /usr/bin/xkbcomp.

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

If you believe that xkbcomp should be allowed execute access on the xkbcomp 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 xkbcomp /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:bin_t:s0
Target Objects                /usr/bin/xkbcomp [ file ]
Source                        xkbcomp
Source Path                   /usr/bin/xkbcomp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xorg-x11-xkb-utils-7.7-8.fc20.x86_64
Target RPM Packages           xorg-x11-xkb-utils-7.7-8.fc20.x86_64
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.7-300.fc20.x86_64 #1 SMP Fri
                              Jan 10 15:35:31 UTC 2014 x86_64 x86_64
Alert Count                   16
First Seen                    2014-01-13 09:13:29 CET
Last Seen                     2014-01-16 14:31:45 CET
Local ID                      90142127-3ad8-4de3-8ab2-07fa00e6dccd

Raw Audit Messages
type=AVC msg=audit(1389879105.544:447): avc:  denied  { execute } for  pid=3141 comm="sh" name="xkbcomp" dev="sda6" ino=799692 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file


type=AVC msg=audit(1389879105.544:447): avc:  denied  { execute_no_trans } for  pid=3141 comm="sh" path="/usr/bin/xkbcomp" dev="sda6" ino=799692 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file


type=SYSCALL msg=audit(1389879105.544:447): arch=x86_64 syscall=execve success=yes exit=0 a0=11c5c20 a1=11c5600 a2=11c3cb0 a3=8 items=0 ppid=2664 pid=3141 auid=4294967295 uid=0 gid=1001 euid=0 suid=0 fsuid=0 egid=1001 sgid=1001 fsgid=1001 ses=4294967295 tty=(none) comm=xkbcomp exe=/usr/bin/xkbcomp subj=system_u:system_r:bumblebee_t:s0 key=(null)

Hash: xkbcomp,bumblebee_t,bin_t,file,execute

Additional info:
reporter:       libreport-2.1.11
hashmarkername: setroubleshoot
kernel:         3.12.7-300.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-01-19 20:46:34 UTC
commit ba91dac1250b562ed89d4cd132593a9c3befc645
Author: Miroslav Grepl <mgrepl>
Date:   Sun Jan 19 21:46:19 2014 +0100

    Allow xkbcomp running as bumblebee_t to execute  bin_t

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

Comment 3 Fedora Update System 2014-01-22 03:08:24 UTC
Package selinux-policy-3.12.1-119.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-119.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-1249/selinux-policy-3.12.1-119.fc20
then log in and leave karma (feedback).

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