diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2008-11-25 18:18:46 -0500 |
---|---|---|
committer | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2008-11-25 18:28:12 -0500 |
commit | 2538fc0d893a150e978355d281750f0a989728a7 (patch) | |
tree | 0659ad0395e53649d2a5ca1055a4f5d5c4d61021 /Xext/xselinux.c | |
parent | c8472a74441838e16d0d3414db1fa7fe996868a9 (diff) |
xselinux: don't pass a NULL key string to selabel_lookup().
Diffstat (limited to 'Xext/xselinux.c')
-rw-r--r-- | Xext/xselinux.c | 2 |
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"); } |