Re: [Xpert]LocalClient extensions vs. ssh

2002-06-12 Thread Egbert Eich

Joe Krahn writes:
  Aside from LocalClient returning false, DGA requests should fail, right?

LocalClient() returns TRUE therefore DGA doesn't fail.

  Trying GL over the tunnel correctly gives an error message and reverts
  to indirect rendering.

That's different. With direct rendering the client library connects directly
to the hw. It does not rely on the sever to fail.

  
  I don't know much about DGA, but my understanding is that it has
  a lot of issues because it is sort of a big hack (but useful), and
  the real solution is to replace it with real protocols like XVideo
  and a similar capture extension.
  

This is not limited to DGA. Other extensions that depend on being run
locally have the same problem if they rely on the sever's
LocalClient() implementation.

Egbert.
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert]LocalClient extensions vs. ssh

2002-06-12 Thread Joe Krahn

Egbert Eich wrote:
 
 Joe Krahn writes:
   Aside from LocalClient returning false, DGA requests should fail, right?
 
 LocalClient() returns TRUE therefore DGA doesn't fail.
Oh... I understand now. I didn;t know about the LocalClient fucntion,
but it's whole purpose is to supply info so that, for example, DGA
can do the right thing. Clearly, LocalClient needs a foolproof
way to determine if a client really is local.

Not understanding how DGA memory access works, here's a question:
If the tunneled server gives permission for direct memory access,
how does the local user get access to write into system memory
without simply getting a segfault?

Also, what happens when a client is accessing server memory, and
you switch to a different virtual terminal?

Thanks, Joe Krahn
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



[Xpert]LocalClient extensions vs. ssh

2002-06-11 Thread Egbert Eich



When running X request thru a ssh tunnel LocalClient() returns
true as the sshd connects to the Xserver from the same machine.
 
This leads to unpredictable results and even system crashes
if an application that can only run locally is started on a remote
system.

If for example an application wants to address the framebuffer
directly thru DGA it will try to map the framebuffer on the machine
it is started on not the one where the Xserver lives on.

Even though this requires root privileges I do consider this to
be a problem that should be adressed.

Any ideas?

Egbert.
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert]LocalClient extensions vs. ssh

2002-06-11 Thread Joe Krahn

Egbert Eich wrote:
 
 When running X request thru a ssh tunnel LocalClient() returns
 true as the sshd connects to the Xserver from the same machine.
 
 This leads to unpredictable results and even system crashes
 if an application that can only run locally is started on a remote
 system.
 
 If for example an application wants to address the framebuffer
 directly thru DGA it will try to map the framebuffer on the machine
 it is started on not the one where the Xserver lives on.
 
 Even though this requires root privileges I do consider this to
 be a problem that should be adressed.
 
 Any ideas?

Aside from LocalClient returning false, DGA requests should fail, right?
Trying GL over the tunnel correctly gives an error message and reverts
to indirect rendering.

I don't know much about DGA, but my understanding is that it has
a lot of issues because it is sort of a big hack (but useful), and
the real solution is to replace it with real protocols like XVideo
and a similar capture extension.

Joe Krahn
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert