[PATCH xserver] os: Treat ssh as a non-local client (v4)

Adam Jackson ajax at nwnk.net
Mon Mar 28 16:45:20 UTC 2016


On Mon, 2016-03-28 at 18:11 +0900, Michel Dänzer wrote:
> From: Adam Jackson <ajax at redhat.com>
> 
> 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.
> 
> v2: (Michel Dänzer)
>     * Only match "ssh" itself, not other executable names starting with
>       that prefix.
>     * Ignore executable path for the match.
> v3: (Michel Dänzer)
>     * Use GetClientCmdName (Mark Kettenis)
>     * Perform check on Windows as well, but only ignore path on Cygwin
>       (Martin Peres, Emil Velikov, Jon Turney)
> v4: (Michel Dänzer)
>     * Cut of any colon and whatever comes after it. (Adam Jackson)
>     * Add bugzilla reference.
> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93261
> 
> Signed-off-by: Adam Jackson <ajax at redhat.com>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

remote: I: patch #78481 updated using rev adefbaee499b9679c6cac21f52ec6545af2b36b5.
remote: I: 1 patch(es) updated to state Accepted.
To ssh://git.freedesktop.org/git/xorg/xserver
   1c90797..adefbae  master -> master

- ajax


More information about the xorg-devel mailing list