Bug 1046480 - SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/bin/bash.
Summary: SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/...
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:b402a0345f03df0dce128fc8253...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-25 17:15 UTC by ekrgbservice
Modified: 2014-01-16 07:11 UTC (History)
4 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:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description ekrgbservice 2013-12-25 17:15:59 UTC
Description of problem:
installed bumblebee as descibed at https://fedoraproject.org/wiki/Bumblebee

startet optirun glxgears -info
SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/bin/bash.

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

If you believe that bash should be allowed execute access on the bash 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 sh /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:shell_exec_t:s0
Target Objects                /usr/bin/bash [ file ]
Source                        sh
Source Path                   /usr/bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.2.45-4.fc20.x86_64
Target RPM Packages           bash-4.2.45-4.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.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-25 18:14:25 CET
Last Seen                     2013-12-25 18:14:25 CET
Local ID                      ebfd4790-0634-4069-8413-216dddd06045

Raw Audit Messages
type=AVC msg=audit(1387991665.598:592): avc:  denied  { execute } for  pid=3147 comm="Xorg" name="bash" dev="sdb3" ino=136276 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:shell_exec_t:s0 tclass=file


type=AVC msg=audit(1387991665.598:592): avc:  denied  { execute_no_trans } for  pid=3147 comm="Xorg" path="/usr/bin/bash" dev="sdb3" ino=136276 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:shell_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1387991665.598:592): arch=x86_64 syscall=execve success=yes exit=0 a0=5a850b a1=7fffc2e240d0 a2=7fffc2e2a720 a3=3435c1c310 items=0 ppid=3025 pid=3147 auid=4294967295 uid=0 gid=1002 euid=0 suid=0 fsuid=0 egid=1002 sgid=1002 fsgid=1002 ses=4294967295 tty=(none) comm=sh exe=/usr/bin/bash subj=system_u:system_r:bumblebee_t:s0 key=(null)

Hash: sh,bumblebee_t,shell_exec_t,file,execute

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:11:19 UTC
Has been fixed.

Comment 2 Fedora Update System 2014-01-13 22:56:42 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:17 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:06 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.