Bug 607902 - SELinux is preventing /usr/libexec/gdm-session-worker "getattr" access on /tmp/.X11-unix/X0.
Summary: SELinux is preventing /usr/libexec/gdm-session-worker "getattr" access o...
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy   
(Show other bugs)
Version: 12
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:51919443bc7...
Depends On:
TreeView+ depends on / blocked
Reported: 2010-06-25 07:07 UTC by alex刺客
Modified: 2010-06-25 10:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-06-25 10:44:37 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description alex刺客 2010-06-25 07:07:29 UTC

SELinux is preventing /usr/libexec/gdm-session-worker "getattr" access on



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


源上下文                  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
                     #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.

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