Bug 615800

Summary: SELinux is preventing /usr/libexec/gdm-session-worker "read append" access on .xsession-errors.
Product: [Fedora] Fedora Reporter: Michal Pomorski <misieck>
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, fybanez, hoffmann, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:7293dd62ec0b01b7db7433a665b25010645f837a95765e9acc644bad65d19734
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-19 10:31:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Michal Pomorski 2010-07-18 22:22:01 UTC

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

Detailed Description:

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

Additional Information:

Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:home_root_t:s0
Target Objects                .xsession-errors [ file ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gdm-2.28.1-24.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-41.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) #1 SMP Sat
                              Nov 7 21:41:45 EST 2009 i686 i686
Alert Count                   1
First Seen                    Mon 05 Apr 2010 08:17:52 PM CEST
Last Seen                     Mon 05 Apr 2010 08:17:52 PM CEST
Local ID                      548fff7d-3e21-4ebc-baef-a9a4d589acbf
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1270491472.673:41031): avc:  denied  { read append } for  pid=1568 comm="gdm-session-wor" name=".xsession-errors" dev=dm-1 ino=1828240 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:home_root_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1270491472.673:41031): arch=40000003 syscall=5 success=no exit=-13 a0=9736b70 a1=442 a2=180 a3=9736b70 items=0 ppid=1532 pid=1568 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 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,home_root_t,file,read,append
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t home_root_t:file { read append };

Comment 1 Miroslav Grepl 2010-07-19 10:31:29 UTC
It looks like your /home dir is mislabeled. Execute

restorecon -R -v /home

Also please update selinux-policy

yum update selinux-policy-targeted