Bug 558856

Summary: SELinux is preventing /usr/libexec/gdm-session-worker "getattr" access on /tmp/.X11-unix/X0.
Product: [Fedora] Fedora Reporter: Dawid Zamirski <dzrudy>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:80a3b5c41410a98793dd7fdf967432c5dba0b18839f2defb732ed40eba5c0d2a
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-27 16:44:53 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 Dawid Zamirski 2010-01-26 15:23:16 UTC
Summary:

SELinux is preventing /usr/libexec/gdm-session-worker "getattr" access on
/tmp/.X11-unix/X0.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by gdm-session-wor. It is not expected that this
access is required by gdm-session-wor and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:initrc_tmp_t:s0
Target Objects                /tmp/.X11-unix/X0 [ sock_file ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gdm-2.28.2-1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-69.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.12-174.2.3.fc12.x86_64 #1 SMP Mon Jan 18
                              19:52:07 UTC 2010 x86_64 x86_64
Alert Count                   12
First Seen                    Wed 20 Jan 2010 01:33:47 AM EST
Last Seen                     Mon 25 Jan 2010 08:03:08 PM EST
Local ID                      4dc0b81e-e20e-4550-9998-6fa974f41576
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264467788.300:37575): avc:  denied  { getattr } for  pid=22614 comm="gdm-session-wor" path="/tmp/.X11-unix/X0" dev=dm-3 ino=917509 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=sock_file

node=(removed) type=SYSCALL msg=audit(1264467788.300:37575): arch=c000003e syscall=6 success=yes exit=0 a0=7fff4dab9600 a1=7fff4dab9530 a2=7fff4dab9530 a3=3fb items=0 ppid=22561 pid=22614 auid=500 uid=0 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=500 tty=(none) ses=80 comm="gdm-session-wor" exe="/usr/libexec/gdm-session-worker" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-69.fc12,catchall,gdm-session-wor,xdm_t,initrc_tmp_t,sock_file,getattr
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t initrc_tmp_t:sock_file getattr;

Comment 1 Daniel Walsh 2010-01-27 15:09:11 UTC
Are you using freenx?

Comment 2 Dawid Zamirski 2010-01-27 15:40:52 UTC
yes, 95% of the time :-)

Comment 3 Daniel Walsh 2010-01-27 16:44:53 UTC

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