Bug 1054469
| Summary: | SELinux is preventing /usr/sbin/bumblebeed from 'name_connect' accesses on the tcp_socket . | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | edo <edosurina> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | blazej.nowak, dominick.grift, dwalsh, HolyMaster, lvrabec, mgrepl, tom.mannerhagen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:84f91a1afcf0401813fe54fcb146e473f51cf822321d3f9466a332ce5de64717 | ||
| 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:06:20 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: | |||
commit 1b3f76d709c00d7b760a4bd48e295a4b9c61418e
Author: Miroslav Grepl <mgrepl>
Date: Fri Jan 17 10:55:05 2014 +0100
Allow bumbleed to connect to xserver port
Hi Miroslav I am getting this bug too. How can I test your commit to see if it solves my problem? I have enabled the Fedora-testing Repo (Fedora 20) but got no SELINUX updates today. BR Tom 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 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). Hi again
Thanks a lot for the update.
I believe I have updated the package as instructed (I am now using selinux-policy-3.12.1-119.fc20.noarch
Yet SE-Linux comes up with a new message and Optirun is not able to run.
See the message below: (sorry for Swedish parts)
SELinux is preventing /usr/sbin/bumblebeed from write access on the file bbswitch.
***** Plugin catchall (100. confidence) suggests **************************
If du tror att bumblebeed borde tillåtas åtkomsten write till bbswitch file som standard.
Then du bör rapportera detta som ett fel.
Du kan generera en lokal policymodul för att tillåta denna åtkomst.
Do
tillåt denna åtkomst för tillfället genom att köra:
# grep bumblebeed /var/log/audit/audit.log | audit2allow -M minpol
# semodule -i minpol.pp
Additional Information:
Source Context system_u:system_r:bumblebee_t:s0
Target Context system_u:object_r:proc_t:s0
Target Objects bbswitch [ file ]
Source bumblebeed
Source Path /usr/sbin/bumblebeed
Port <Unknown>
Host localhost.lan
Source RPM Packages bumblebee-3.2.1-4.fc20.x86_64
Target RPM Packages
Policy RPM selinux-policy-3.12.1-119.fc20.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name localhost.lan
Platform Linux localhost.lan 3.12.8-300.fc20.x86_64 #1 SMP
Thu Jan 16 01:07:50 UTC 2014 x86_64 x86_64
Alert Count 10
First Seen 2014-01-19 15:21:13 CET
Last Seen 2014-01-22 10:28:26 CET
Local ID a2746bb5-72c6-477e-97bc-4602b6531c21
Raw Audit Messages
type=AVC msg=audit(1390382906.783:377): avc: denied { write } for pid=553 comm="bumblebeed" name="bbswitch" dev="proc" ino=4026532322 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=file
type=SYSCALL msg=audit(1390382906.783:377): arch=x86_64 syscall=open success=yes exit=ENXIO a0=409895 a1=241 a2=1b6 a3=22 items=0 ppid=1 pid=553 auid=4294967295 uid=0 gid=1001 euid=0 suid=0 fsuid=0 egid=1001 sgid=1001 fsgid=1001 ses=4294967295 tty=(none) comm=bumblebeed exe=/usr/sbin/bumblebeed subj=system_u:system_r:bumblebee_t:s0 key=(null)
Hash: bumblebeed,bumblebee_t,proc_t,file,write
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. (In reply to Fedora Update System from comment #6) > 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. Hi I thought I did make a note - it seems the problem is still there.... See my previous comment. BR Tom (In reply to Tom Mannerhagen from comment #7) > (In reply to Fedora Update System from comment #6) > > 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. > > Hi > > I thought I did make a note - it seems the problem is still there.... > See my previous comment. > > BR Tom Yes, this new issues is going to be fixed with new builds. Hi again
Tried selinux-policy-3-12-1-122.fc20 from updates-testing today.
It gives me similar problems as before.
Did not read the error messages to the letter.
SELinux is preventing /usr/sbin/bumblebeed from write access on the file bbswitch.
***** Plugin catchall (100. confidence) suggests **************************
If du tror att bumblebeed borde tillåtas åtkomsten write till bbswitch file som standard.
Then du bör rapportera detta som ett fel.
Du kan generera en lokal policymodul för att tillåta denna åtkomst.
Do
tillåt denna åtkomst för tillfället genom att köra:
# grep bumblebeed /var/log/audit/audit.log | audit2allow -M minpol
# semodule -i minpol.pp
Additional Information:
Source Context system_u:system_r:bumblebee_t:s0
Target Context system_u:object_r:proc_t:s0
Target Objects bbswitch [ file ]
Source bumblebeed
Source Path /usr/sbin/bumblebeed
Port <Unknown>
Host localhost.lan
Source RPM Packages bumblebee-3.2.1-4.fc20.x86_64
Target RPM Packages
Policy RPM selinux-policy-3.12.1-122.fc20.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name localhost.lan
Platform Linux localhost.lan 3.12.10-300.fc20.x86_64 #1 SMP
Thu Feb 6 22:11:48 UTC 2014 x86_64 x86_64
Alert Count 4
First Seen 2014-02-12 15:53:46 CET
Last Seen 2014-02-12 16:03:12 CET
Local ID 6a3fea1e-d4ac-4cda-ae3c-f5e262b2e943
Raw Audit Messages
type=AVC msg=audit(1392217392.800:375): avc: denied { write } for pid=546 comm="bumblebeed" name="bbswitch" dev="proc" ino=4026532342 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=file
type=SYSCALL msg=audit(1392217392.800:375): arch=x86_64 syscall=open success=yes exit=ENXIO a0=409895 a1=241 a2=1b6 a3=22 items=0 ppid=1 pid=546 auid=4294967295 uid=0 gid=1001 euid=0 suid=0 fsuid=0 egid=1001 sgid=1001 fsgid=1001 ses=4294967295 tty=(none) comm=bumblebeed exe=/usr/sbin/bumblebeed subj=system_u:system_r:bumblebee_t:s0 key=(null)
Hash: bumblebeed,bumblebee_t,proc_t,file,write
I added additional fixes. |
Description of problem: SELinux is preventing /usr/sbin/bumblebeed from 'name_connect' accesses on the tcp_socket . ***** Plugin catchall (100. confidence) suggests ************************** If you believe that bumblebeed should be allowed name_connect access on the tcp_socket 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 bumblebeed /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_port_t:s0 Target Objects [ tcp_socket ] Source bumblebeed Source Path /usr/sbin/bumblebeed Port 6008 Host (removed) Source RPM Packages bumblebee-3.2.1-4.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:34:14 CET Last Seen 2013-12-27 22:34:14 CET Local ID 232820f8-a53a-459b-b39d-990c85bdbcbf Raw Audit Messages type=AVC msg=audit(1388180054.260:655): avc: denied { name_connect } for pid=630 comm="bumblebeed" dest=6008 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:xserver_port_t:s0 tclass=tcp_socket type=SYSCALL msg=audit(1388180054.260:655): arch=x86_64 syscall=connect success=no exit=ECONNREFUSED a0=8 a1=16a5890 a2=1c a3=7fff26cedc44 items=0 ppid=1 pid=630 auid=4294967295 uid=0 gid=1001 euid=0 suid=0 fsuid=0 egid=1001 sgid=1001 fsgid=1001 ses=4294967295 tty=(none) comm=bumblebeed exe=/usr/sbin/bumblebeed subj=system_u:system_r:bumblebee_t:s0 key=(null) Hash: bumblebeed,bumblebee_t,xserver_port_t,tcp_socket,name_connect Additional info: reporter: libreport-2.1.11 hashmarkername: setroubleshoot kernel: 3.12.7-300.fc20.x86_64 type: libreport