summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2008-11-25 18:18:46 -0500
committerEamon Walsh <ewalsh@tycho.nsa.gov>2008-11-25 18:28:12 -0500
commit2538fc0d893a150e978355d281750f0a989728a7 (patch)
tree0659ad0395e53649d2a5ca1055a4f5d5c4d61021
parentc8472a74441838e16d0d3414db1fa7fe996868a9 (diff)
xselinux: don't pass a NULL key string to selabel_lookup().
-rw-r--r--Xext/xselinux.c2
1 files changed, 1 insertions, 1 deletions
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");
}