Bug 607902

Summary: SELinux is preventing /usr/libexec/gdm-session-worker "getattr" access on /tmp/.X11-unix/X0.
Product: [Fedora] Fedora Reporter: alex刺客 <xiangjava>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:51919443bc75ca67fd39bf4984d62efbe178ef683b691b63d633869b6e59b62d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-25 10:44:37 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 alex刺客 2010-06-25 07:07:29 UTC
概述:

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

详细描述:

[SELinux处于宽容模式。此访问未受拒绝。]

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.

允许访问:

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

附加信息:

源上下文                  system_u:system_r:xdm_t:s0-s0:c0.c1023
目标上下文               system_u:object_r:root_t:s0
目标对象                  /tmp/.X11-unix/X0 [ sock_file ]
源                           gdm-session-wor
源路径                     /usr/libexec/gdm-session-worker
端口                        <未知>
主机                        (removed)
源 RPM 软件包             gdm-2.28.2-3.fc12
目标 RPM 软件包          
策略 RPM                    selinux-policy-3.6.32-118.fc12
启用 Selinux                True
策略类型                  targeted
Enforcing 模式              Permissive
插件名称                  catchall
主机名                     (removed)
平台                        Linux localhost.localdomain
                              2.6.32.14-127.fc12.i686.PAE #1 SMP Fri May 28
                              04:47:04 UTC 2010 i686 athlon
警报计数                  1
第一个                     2010年06月25日 星期五 14时28分42秒
最后一个                  2010年06月25日 星期五 14时28分42秒
本地 ID                     f5c1f4bb-f760-4f37-8f96-4b31468f9d99
行号                        

原始核查信息            

node=localhost.localdomain type=AVC msg=audit(1277447322.45:412): avc:  denied  { getattr } for  pid=2822 comm="gdm-session-wor" path="/tmp/.X11-unix/X0" dev=dm-0 ino=7077893 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:root_t:s0 tclass=sock_file

node=localhost.localdomain type=SYSCALL msg=audit(1277447322.45:412): arch=40000003 syscall=196 success=yes exit=0 a0=bf86420c a1=bf86418c a2=7e8ff4 a3=fd6530 items=0 ppid=1556 pid=2822 auid=500 uid=0 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 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  catchall,gdm-session-wor,xdm_t,root_t,sock_file,getattr
audit2allow suggests:

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

Comment 1 Miroslav Grepl 2010-06-25 10:44:37 UTC
What is the label on /tmp?

ls -dZ /tmp

It should be tmp_t and not root_t

restorecon -R -v /tmp

Should fix. Repoen if this bug persists.