From 2538fc0d893a150e978355d281750f0a989728a7 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Tue, 25 Nov 2008 18:18:46 -0500 Subject: [PATCH] xselinux: don't pass a NULL key string to selabel_lookup(). --- Xext/xselinux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xext/xselinux.c b/Xext/xselinux.c index 945984dec..0e8f25468 100644 --- a/Xext/xselinux.c +++ b/Xext/xselinux.c @@ -474,7 +474,7 @@ SELinuxLabelClient(ClientPtr client) /* Try to get a context from the socket */ if (fd < 0 || getpeercon(fd, &ctx) < 0) { /* Otherwise, fall back to a default context */ - if (selabel_lookup(label_hnd, &ctx, NULL, SELABEL_X_CLIENT) < 0) + if (selabel_lookup(label_hnd, &ctx, "remote", SELABEL_X_CLIENT) < 0) FatalError("SELinux: failed to look up remote-client context\n"); }