Xace: drop XaceIsLocal()

Just a dumb wrapper to ClientIsLocal() - 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:50:04 +02:00
committed by Enrico Weigelt
parent d74767107d
commit da58522087
3 changed files with 1 additions and 8 deletions

View File

@@ -275,12 +275,6 @@ XaceGetConnectionNumber(ClientPtr client)
return GetClientFd(client);
}
int
XaceIsLocal(ClientPtr client)
{
return ClientIsLocal(client);
}
Bool
XaceRegisterCallback(int hook, CallbackProcPtr callback, void *data)
{

View File

@@ -100,7 +100,6 @@ int XaceHookKeyAvail(xEventPtr ev, DeviceIntPtr dev, int count);
/* XTrans wrappers for use by security modules
*/
int XaceGetConnectionNumber(ClientPtr ptr);
int XaceIsLocal(ClientPtr ptr);
/* From the original Security extension...
*/

View File

@@ -130,7 +130,7 @@ SELinuxLabelClient(ClientPtr client)
}
/* For local clients, try and determine the executable name */
if (XaceIsLocal(client)) {
if (ClientIsLocal(client)) {
/* Get cached command name if CLIENTIDS is enabled. */
const char *cmdname = GetClientCmdName(client);
Bool cached = (cmdname != NULL);