This is from NetBSD's PR: xsrc/32804 http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=32804 Possible someone could open the $HOME/.xsession-errors" before it becomes unreadable. --- programs/xdm/config/Xsession.cpp.orig 2006-02-12 16:32:25.000000000 +0100 +++ programs/xdm/config/Xsession.cpp @@ -6,9 +6,8 @@ XCOMM $XFree86: xc/programs/xdm/config/X XCOMM redirect errors to a file in user's home directory if we can for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER" do - if ( cp /dev/null "$errfile" 2> /dev/null ) + if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) then - chmod 600 "$errfile" exec > "$errfile" 2>&1 break fi I also emailed the xorg_security a couple days ago but no reply. May I commit the above?
Committed fix to app/xdm/config/Xsession.cpp HEAD. I am closing but didn't commit to monolithic.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.