mviereck / x11docker

Run GUI applications and desktops in docker and podman containers. Focus on security.
MIT License
5.61k stars 377 forks source link

x11docker ERROR: Failed to create untrusted cookie. #503

Open Hans-van-Velzen opened 1 year ago

Hans-van-Velzen commented 1 year ago

Wondering if you have seen this showing up - using the --hostdisplay flag :

x11docker ERROR: Failed to create untrusted cookie.
 Maybe your X server misses extension SECURITY.

I am working on my local machine, well behind a firewall. Just looking for a simple way to get his up and running.

mviereck commented 1 year ago

Please check the output of xdpyinfo | grep -i SECURITY. If it shows no output, than your X server is configured to not provide this extension.

jcalfee commented 1 year ago

Thanks for the tip @mviereck .. we have no output (missing the SECURITY extension). We are still hunting all over for some reference on how to install or enable it. This info is just not readily available. I'll be sure to post an update when we find something. This is on Ubuntu 22.04 / Pop-Os 6..

Hans-van-Velzen commented 1 year ago

Guess this may involve patch level stuff. Here is one example: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221984 -- some older issues with SECURITY extension

jcalfee commented 1 year ago

If we can't figure out how to enable or install the SECURITY extension, can you please suggest a variable tweak so we can try to by-pass the secure cookie? For example, maybe there is something we can safely patch in the x11docker file?

Trusted="yes"                                   # Create trusted or untrusted cookies,  --hostdisplay uses untrusted cookies by default