On Tue, 2015-12-08 at 13:55 -0500, Adam Jackson wrote:
> By the time we get to ComputeLocalClient, we've already done
> NextAvailableClient → ReserveClientIds → DetermineClientCmd (assuming
> we're built with #define CLIENTIDS), so we can look up the name of the
> client process and refuse to treat ssh's X forwarding as if it were
> local.

I have actually tested this by running xdpyinfo through ssh to Xvfb,
the result looks like:

Breakpoint 1, ProcQueryExtension (client=0x1ca1e20) at extension.c:253
253         REQUEST_FIXED_SIZE(xQueryExtensionReq, stuff->nbytes);
(gdb) p *client->clientIds
$1 = {pid = 15888, 
  cmdname = 0x1f957f0 "ssh: /run/user/1000/ssh-control-ajax@localhost:22 [mux", 
cmdargs = 0x0}
(gdb) p client->local
$2 = 0

Or, with ssh -S none:

Breakpoint 1, ProcQueryExtension (client=0x1ca1e20) at extension.c:253
253         REQUEST_FIXED_SIZE(xQueryExtensionReq, stuff->nbytes);
(gdb) p *client->clientIds
$1 = {pid = 16366, cmdname = 0x1f95910 "ssh", 
  cmdargs = 0x1f95930 "-S none -Y localhost"}
(gdb) p client->local
$2 = 0

- ajax
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to