From 6c2c6fb5a7b44f50811722eb8621afb272aff2e8 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 21 Sep 2015 07:16:14 +0100 Subject: Xext, os: Remove OS-internal usages within XACE and XSELinux These extensions were accessing internal OS functions and structures. Expose the necessary functionality to them and remove their use of osdep.h Reviewed-by: Alan Coopersmith Signed-off-by: Keith Packard --- os/access.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'os') diff --git a/os/access.c b/os/access.c index 54f069024..2499a9f12 100644 --- a/os/access.c +++ b/os/access.c @@ -1574,6 +1574,20 @@ GetAccessControl(void) return AccessEnabled; } +int +GetClientFd(ClientPtr client) +{ + return ((OsCommPtr) client->osPrivate)->fd; +} + +Bool +ClientIsLocal(ClientPtr client) +{ + XtransConnInfo ci = ((OsCommPtr) client->osPrivate)->trans_conn; + + return _XSERVTransIsLocal(ci); +} + /***************************************************************************** * FamilyServerInterpreted host entry implementation * -- cgit v1.2.3