Alan Cox wrote:
The problem is (hypothetical) if I try DRM on a remote machine with the sameOn Iau, 2004-10-21 at 16:49, Thomas HellstrÃm wrote:architecture-independent library should be able to determine whether the connection is local or not. Any hints on how to do best do this without using drm?Try DRM first and see if it fails.There really isn't much else you can do - "local" connections to X include ssh forwarding and proxies 8( architecture it won't fail until the server tries to authenticate the connection using drmauthmagic(). Even then, it might not fail, but instead authenticate a totally unrelated local connection on the server machine. (I'm not sure how well drmauthmagic really checks the magic number and the related connection.) One solution could be to create a shared memory page and put in a random "magic" number in the first few bytes, and see if the server is able to read and report back the same number. That would take care also of the ssh and proxy cases. /Thomas |