Summary: SELinux is preventing gdm-session-wor (xdm_t) "write" to /home/rob/.xsession-errors (user_home_t). Detailed Description: SELinux denied access requested by gdm-session-wor. /home/rob/.xsession-errors may be a mislabeled. /home/rob/.xsession-errors default SELinux type is xdm_home_t, but its current type is user_home_t. Changing this file back to the default type, may fix your problem. File contexts can be assigned to a file in the following ways. * Files created in a directory receive the file context of the parent directory by default. * The SELinux policy might override the default label inherited from the parent directory by specifying a process running in context A which creates a file in a directory labeled B will instead create the file with label C. An example of this would be the dhcp client running with the dhclient_t type and creates a file in the directory /etc. This file would normally receive the etc_t type due to parental inheritance but instead the file is labeled with the net_conf_t type because the SELinux policy specifies this. * Users can change the file context on a file using tools such as chcon, or restorecon. This file could have been mislabeled either by user error, or if an normally confined application was run under the wrong domain. However, this might also indicate a bug in SELinux because the file should not have been labeled with this type. If you believe this is a bug, please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package. Allowing Access: You can restore the default system context to this file by executing the restorecon command. restorecon '/home/rob/.xsession-errors', if this file is a directory, you can recursively restore using restorecon -R '/home/rob/.xsession-errors'. Fix Command: restorecon '/home/rob/.xsession-errors' Additional Information: Source Context system_u:system_r:xdm_t:s0-s0:c0.c1023 Target Context system_u:object_r:user_home_t:s0 Target Objects /home/rob/.xsession-errors [ file ] Source gdm-session-wor Source Path /usr/libexec/gdm-session-worker Port <Unknown> Host (removed) Source RPM Packages gdm-2.26.1-13.fc11 Target RPM Packages Policy RPM selinux-policy-3.6.12-86.fc11 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Plugin Name restorecon Host Name (removed) Platform Linux (removed) 2.6.30.9-96.fc11.x86_64 #1 SMP Wed Nov 4 00:02:04 EST 2009 x86_64 x86_64 Alert Count 26 First Seen Sun 12 Jul 2009 11:27:15 AM MDT Last Seen Sun 15 Nov 2009 06:25:37 PM MST Local ID 35252257-4a74-49de-b3a0-971b687f20c6 Line Numbers Raw Audit Messages node=(removed) type=AVC msg=audit(1258334737.586:34): avc: denied { write } for pid=4304 comm="gdm-session-wor" name=".xsession-errors" dev=dm-1 ino=4129444 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_t:s0 tclass=file node=(removed) type=SYSCALL msg=audit(1258334737.586:34): arch=c000003e syscall=77 success=no exit=-13 a0=9 a1=0 a2=7fff1b523b50 a3=7fff1b523890 items=0 ppid=4267 pid=4304 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 selinux-policy-3.6.12-86.fc11,restorecon,gdm-session-wor,xdm_t,user_home_t,file,write audit2allow suggests: #============= xdm_t ============== allow xdm_t user_home_t:file write;
*** This bug has been marked as a duplicate of bug 538428 ***