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:
Enrico Weigelt, metux IT consult
2025-07-16 22:55:10 +02:00
committed by Enrico Weigelt
parent da58522087
commit 0580a054a4
3 changed files with 1 additions and 14 deletions

View File

@@ -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)
{

View File

@@ -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...
*/

View File

@@ -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;