mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xselinux: don't pass a NULL key string to selabel_lookup().
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user