mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-29 18:30:08 +01:00
xselinux: don't pass a NULL key string to selabel_lookup().
This commit is contained in:
parent
c8472a7444
commit
2538fc0d89
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue