Red Hat Bugzilla – Bug 119506
Output redirection to $HOME/.xsession-errors is a bad idea under SELinux
Last modified: 2007-11-30 17:10:39 EST
The way the Xsession script is currently written, it defaults to
redictecting output to $HOME/.xsession-errors (unless the Gnome
session is selected). This file gets created with the default user
permissions and certain programs (ssh-agent, for example) end up not
being able to write to it and becoming very unhappy (ssh-agent starts
eating all the CPU). If the /tmp/xses-... is used, everything is OK.
I see 3 possible solutions:
a) Always use /tmp/xses-...
b) Change the script to have the $HOME/.xsession-errors created with
the tmp file SELinux context
c) Allow all those programs to write to user files (bad idea, obviously).
Bug 119204 addresses the same problem with the Xsession script shipped
in kdebase (and bug 119503 asks for that second script to be dropped
and the xinitrc one to be used instead).
Now that kdebase no longer has a separate Xsession, this became a dup
of bug 119204.
*** This bug has been marked as a duplicate of 119204 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.