Skip to content
Snippets Groups Projects
Commit a3933d69 authored by Ludovico de Nittis's avatar Ludovico de Nittis
Browse files

_v2-entry-point: Use a shorter rendezvous directory name


The AF_UNIX sockets that are used as rendezvous-point are limited to 108
bytes by the Linux kernel.

To prevent exceeding this limit, especially when we use the
XDG_RUNTIME_DIR prefix, we use a shorter directory name that is still
distinctive enough.

Signed-off-by: default avatarLudovico de Nittis <ludovico.denittis@collabora.com>
parent 2bd4ab95
No related branches found
No related tags found
1 merge request!34_v2-entry-point: Use a shorter rendezvous directory name
Pipeline #9818 passed with warnings
......@@ -325,13 +325,13 @@ if [[ -v PRESSURE_VESSEL_SOCKET_DIR ]]; then
log "PRESSURE_VESSEL_SOCKET_DIR is owned by someone else"
exit 125
fi
rendezvous="${PRESSURE_VESSEL_SOCKET_DIR}/SteamLinuxRuntime.${STEAM_COMPAT_SESSION_ID:?}"
rendezvous="${PRESSURE_VESSEL_SOCKET_DIR}/SLR.${STEAM_COMPAT_SESSION_ID:?}"
else
if ! [ -O "$XDG_RUNTIME_DIR" ]; then
log "XDG_RUNTIME_DIR is owned by someone else"
exit 125
fi
rendezvous="${XDG_RUNTIME_DIR}/SteamLinuxRuntime.${STEAM_COMPAT_SESSION_ID:?}"
rendezvous="${XDG_RUNTIME_DIR}/SLR.${STEAM_COMPAT_SESSION_ID:?}"
fi
if mkdir -m700 "$rendezvous" 2>/dev/null; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment