Re: XWindows
This could be prevented with the correct use of xhost to close down access to the X server, and if you had a shared filesystem could also be controlled quite easily using Magic Cookies.
And of course, if you are really careful, you use X protocol tunneling in ssh, although there are ways of subvirting even this.