Bug 715156

Summary: SELinux is preventing /usr/libexec/gdm-session-worker from read, append access on the file /home/Bruce/.xsession-errors.
Product: [Fedora] Fedora Reporter: Bruce Martin <brucemartin10>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dominick.grift, dwalsh, elad, maidenleo2000, mgrepl, terrance.wickman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:e774fc9c732b6b3f2c59415623b2cb5d25d59cd0a499912026e87d4ccb25e578
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-22 15:00:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Bruce Martin 2011-06-22 03:55:31 UTC
SELinux is preventing /usr/libexec/gdm-session-worker from read, append access on the file /home/Bruce/.xsession-errors.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/home/Bruce/.xsession-errors default label should be xdm_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/Bruce/.xsession-errors

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that gdm-session-worker should be allowed read append access on the .xsession-errors file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep gdm-session-wor /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_home_dir_t:s0
Target Objects                /home/Bruce/.xsession-errors [ file ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gdm-2.32.1-2.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.13-92.fc14.x86_64 #1 SMP Sat May 21
                              17:26:25 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Tue 21 Jun 2011 11:50:07 PM EDT
Last Seen                     Tue 21 Jun 2011 11:50:07 PM EDT
Local ID                      60c2c23f-1d32-4973-a11a-f0125e62b386

Raw Audit Messages
type=AVC msg=audit(1308714607.837:73575): avc:  denied  { read append } for  pid=4672 comm="gdm-session-wor" name=".xsession-errors" dev=dm-2 ino=3670030 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file


type=SYSCALL msg=audit(1308714607.837:73575): arch=x86_64 syscall=open success=no exit=EACCES a0=19d7840 a1=442 a2=180 a3=0 items=0 ppid=4642 pid=4672 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=4 comm=gdm-session-wor exe=/usr/libexec/gdm-session-worker subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: gdm-session-wor,xdm_t,user_home_dir_t,file,read,append

audit2allow

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

audit2allow -R

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

Comment 1 Daniel Walsh 2011-06-22 15:00:23 UTC

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