Bugzilla – Bug 105939
/etc/X11/xdm/Xsession clobbers ~/.xsession-errors
Last modified: 2005-08-22 16:39:28 UTC
Xsession removes ~/.xsession-errors before redirecting into it. This makes it impossible to redirect it via a symlink to a local, non-shared directory.
So what? # # Avoid bad symbolic links # It seems to be intentional ...
It's obviously doing the wrong thing.
To be honest, I don't want to touch this code ever again. See Bug #49253. At least you should provide a proposal for discussion.
It must be possible to redirect the output to a local disk.
The only way would be a script of the user to create the ~/.xsession-errors. Then it is the users stupidy if something goes wrong by an attack or an accidental.
What is stupid about creating a symlink in $HOME?
Don't ask me ask the security people ... maybe a attachement executed by kmail does the job of a nice symbolic link which points to the user personal data files.
No, in the user's home it doesn't matter. Only when creating files in world writeable locations such as /tmp one has to be careful to not follow symlinks.
Please believe me: I was forced by the former security team to do this also for the users ~/.xsession-error file with exact this explanation given in comment #7 ... if you know says this is not necessary anymore I'll change that. I'll add Roman to the CC list maybe he has some minutes to remember this.
The original problem was discussed here: https://bugzilla.novell.com/show_bug.cgi?id=49253 the script can also create xsession logs in /tmp ... thats why this strange check is there I think.
I've changed /etc/X11/xdm/Xsession accordingly