Bug 607902 - SELinux is preventing /usr/libexec/gdm-session-worker "getattr" access on /tmp/.X11-unix/X0.
SELinux is preventing /usr/libexec/gdm-session-worker "getattr" access o...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
12
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
setroubleshoot_trace_hash:51919443bc7...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-25 03:07 EDT by alex刺客
Modified: 2010-06-25 06:44 EDT (History)
2 users (show)

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


Attachments (Terms of Use)

  None (edit)
Description alex刺客 2010-06-25 03:07:29 EDT
概述:

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 06:44:37 EDT
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.