mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Xace: drop XaceGetConnectionNumber()
It's just a wrapper around GetClientFd() - we can use this one directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
da58522087
commit
0580a054a4
@@ -266,15 +266,6 @@ XaceCensorImage(ClientPtr client,
|
||||
RegionUninit(&censorRegion);
|
||||
} /* XaceCensorImage */
|
||||
|
||||
/*
|
||||
* Xtrans wrappers for use by modules
|
||||
*/
|
||||
int
|
||||
XaceGetConnectionNumber(ClientPtr client)
|
||||
{
|
||||
return GetClientFd(client);
|
||||
}
|
||||
|
||||
Bool
|
||||
XaceRegisterCallback(int hook, CallbackProcPtr callback, void *data)
|
||||
{
|
||||
|
||||
@@ -97,10 +97,6 @@ int XaceHookKeyAvail(xEventPtr ev, DeviceIntPtr dev, int count);
|
||||
|
||||
/* Register / unregister a callback for a given hook. */
|
||||
|
||||
/* XTrans wrappers for use by security modules
|
||||
*/
|
||||
int XaceGetConnectionNumber(ClientPtr ptr);
|
||||
|
||||
/* From the original Security extension...
|
||||
*/
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ SELinuxDoCheck(SELinuxSubjectRec * subj, SELinuxObjectRec * obj,
|
||||
static void
|
||||
SELinuxLabelClient(ClientPtr client)
|
||||
{
|
||||
int fd = XaceGetConnectionNumber(client);
|
||||
int fd = GetClientFd(client);
|
||||
SELinuxSubjectRec *subj;
|
||||
SELinuxObjectRec *obj;
|
||||
char *ctx;
|
||||
|
||||
Reference in New Issue
Block a user