summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-09-21 07:16:14 +0100
committerAdam Jackson <ajax@redhat.com>2015-09-24 13:38:24 -0400
commit6c2c6fb5a7b44f50811722eb8621afb272aff2e8 (patch)
tree288292516db0e178d9f044a3497e346f2f5aefcd /os
parent9af111fe045d82192bacc722940e1d92a8ba4cbd (diff)
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 <alan.coopersmith@oracle.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'os')
-rw-r--r--os/access.c14
1 files changed, 14 insertions, 0 deletions
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
*