Bug 1105798 - SELinux is preventing /usr/bin/Xephyr from 'connectto' accesses on the unix_stream_socket .
Summary: SELinux is preventing /usr/bin/Xephyr from 'connectto' accesses on the unix_s...
Keywords:
Status: CLOSED DUPLICATE of bug 1103622
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:aec5a6ba15c9c3ea57d06e57483...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-07 20:39 UTC by Heiko Adams
Modified: 2014-06-08 10:40 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-06-08 10:40:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Heiko Adams 2014-06-07 20:39:48 UTC
Description of problem:
Tried to open a pdf file with evince inside of a selinux sandbox
SELinux is preventing /usr/bin/Xephyr from 'connectto' accesses on the unix_stream_socket .

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

If sie denken, dass es Xephyr standardmässig erlaubt sein sollte, connectto Zugriff auf  unix_stream_socket zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# grep Xephyr /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:sandbox_x_t:s0:c817,c877
Target Context                system_u:system_r:xserver_t:s0-s0:c0.c1023
Target Objects                 [ unix_stream_socket ]
Source                        Xephyr
Source Path                   /usr/bin/Xephyr
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xorg-x11-server-Xephyr-1.14.4-9.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-166.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.14.5-200.fc20.x86_64 #1 SMP Mon
                              Jun 2 14:26:34 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-06-07 22:38:23 CEST
Last Seen                     2014-06-07 22:38:23 CEST
Local ID                      6870d64b-cdbf-4707-9306-cc06d578a6cc

Raw Audit Messages
type=AVC msg=audit(1402173503.340:593): avc:  denied  { connectto } for  pid=22789 comm="Xephyr" path=002F746D702F2E5831312D756E69782F5830 scontext=unconfined_u:unconfined_r:sandbox_x_t:s0:c817,c877 tcontext=system_u:system_r:xserver_t:s0-s0:c0.c1023 tclass=unix_stream_socket


type=SYSCALL msg=audit(1402173503.340:593): arch=x86_64 syscall=connect success=no exit=EACCES a0=0 a1=7fff8a203180 a2=14 a3=7fff8a203183 items=0 ppid=22780 pid=22789 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=1 comm=Xephyr exe=/usr/bin/Xephyr subj=unconfined_u:unconfined_r:sandbox_x_t:s0:c817,c877 key=(null)

Hash: Xephyr,sandbox_x_t,xserver_t,unix_stream_socket,connectto

Additional info:
reporter:       libreport-2.2.2
hashmarkername: setroubleshoot
kernel:         3.14.5-200.fc20.x86_64
type:           libreport

Potential duplicate: bug 1105652

Comment 1 Lukas Vrabec 2014-06-08 10:40:27 UTC

*** This bug has been marked as a duplicate of bug 1103622 ***


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