mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-21 20:26:45 +00:00
dix: Pull client-is-local flag up to the ClientRec
Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
f702372822
commit
49d38b75c8
14 changed files with 20 additions and 29 deletions
|
|
@ -1045,13 +1045,6 @@ ComputeLocalClient(ClientPtr client)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
Bool LocalClient(ClientPtr client)
|
||||
{
|
||||
if (!client->osPrivate)
|
||||
return FALSE;
|
||||
return ((OsCommPtr)client->osPrivate)->local_client;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the uid and gid of a connected local client
|
||||
*
|
||||
|
|
@ -1209,7 +1202,7 @@ AuthorizedClient(ClientPtr client)
|
|||
if (rc != Success)
|
||||
return rc;
|
||||
|
||||
return LocalClient(client) ? Success : BadAccess;
|
||||
return client->local ? Success : BadAccess;
|
||||
}
|
||||
|
||||
/* Add a host to the access control list. This is the external interface
|
||||
|
|
|
|||
|
|
@ -745,7 +745,7 @@ AllocNewConnection (XtransConnInfo trans_conn, int fd, CARD32 conn_time)
|
|||
free(oc);
|
||||
return NullClient;
|
||||
}
|
||||
oc->local_client = ComputeLocalClient(client);
|
||||
client->local = ComputeLocalClient(client);
|
||||
#if !defined(WIN32)
|
||||
ConnectionTranslation[fd] = client->index;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -166,7 +166,6 @@ typedef struct _osComm {
|
|||
XID auth_id; /* authorization id */
|
||||
CARD32 conn_time; /* timestamp if not established, else 0 */
|
||||
struct _XtransConnInfo *trans_conn; /* transport connection object */
|
||||
Bool local_client;
|
||||
} OsCommRec, *OsCommPtr;
|
||||
|
||||
extern int FlushClient(
|
||||
|
|
|
|||
Loading…
Reference in a new issue