Bug 703448

Summary: SELinux is preventing /usr/bin/gedit from 'connectto' accesses on the unix_stream_socket @/tmp/.X11-unix/X0.
Product: [Fedora] Fedora Reporter: Hicham HAOUARI <hicham.haouari>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:3ad350665a0127e032d969483d7fca244c96320e87acc981fc7e992acebe3c13
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-10 11:46:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Hicham HAOUARI 2011-05-10 11:00:37 UTC
SELinux is preventing /usr/bin/gedit from 'connectto' accesses on the unix_stream_socket @/tmp/.X11-unix/X0.

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

If you believe that gedit should be allowed connectto access on the X0 unix_stream_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 gedit /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:sandbox_t:s0:c729,c816
Target Context                system_u:system_r:xserver_t:s0-s0:c0.c1023
Target Objects                @/tmp/.X11-unix/X0 [ unix_stream_socket ]
Source                        gedit
Source Path                   /usr/bin/gedit
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gedit-2.30.4-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-31.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.11-83.fc14.i686
                              #1 SMP Mon Feb 7 07:04:18 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Wed 02 Mar 2011 01:08:08 AM WET
Last Seen                     Wed 02 Mar 2011 01:08:08 AM WET
Local ID                      44752c36-84a6-4a41-bab5-aacaf1527c9d

Raw Audit Messages
type=AVC msg=audit(1299028088.357:22874): avc:  denied  { connectto } for  pid=29182 comm="gedit" path=002F746D702F2E5831312D756E69782F5830 scontext=unconfined_u:unconfined_r:sandbox_t:s0:c729,c816 tcontext=system_u:system_r:xserver_t:s0-s0:c0.c1023 tclass=unix_stream_socket


type=SYSCALL msg=audit(1299028088.357:22874): arch=i386 syscall=socketcall success=no exit=EACCES a0=3 a1=bfc712d0 a2=2a59dc a3=9473400 items=0 ppid=29181 pid=29182 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts59 ses=1 comm=gedit exe=/usr/bin/gedit subj=unconfined_u:unconfined_r:sandbox_t:s0:c729,c816 key=(null)

Hash: gedit,sandbox_t,xserver_t,unix_stream_socket,connectto

audit2allow

#============= sandbox_t ==============
allow sandbox_t xserver_t:unix_stream_socket connectto;

audit2allow -R

#============= sandbox_t ==============
allow sandbox_t xserver_t:unix_stream_socket connectto;

Comment 1 Miroslav Grepl 2011-05-10 11:46:13 UTC

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