Skip to content
Snippets Groups Projects
Commit 210fbd8c authored by Simon McVittie's avatar Simon McVittie
Browse files

wrap: Don't set a custom hostname for the container


This was a nice idea as a quick way to see which was which, and it works
OK if your X display has uid-based access control via
`xhost +si:localuser:$(id -nu)` (like Debian derivatives and systems
that use gdm); but it breaks MIT magic cookie (XAUTHORITY) authentication
on systems that rely on that, like Plasma Desktop on Manjaro.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 627d5d6a
No related branches found
No related tags found
No related merge requests found
......@@ -1978,18 +1978,6 @@ main (int argc,
"--unsetenv", "PWD",
NULL);
if (strstr (bwrap_help, "unshare-uts") != NULL)
{
g_debug ("Setting hostname...");
/* Set a standard hostname for the container to make it easier
* to see which shell is which */
flatpak_bwrap_add_args (bwrap,
"--unshare-uts",
"--hostname", "pressure-vessel",
NULL);
}
/* TODO: Potential future expansion: use --unshare-pid for more isolation */
/* Put Steam Runtime environment variables back, if /usr is mounted
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment