mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
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:
committed by
Enrico Weigelt
parent
d74767107d
commit
da58522087
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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...
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user