[GH-ISSUE #1087] --private combined with --hostname and GUI app #744

Closed
opened 2026-05-05 06:33:25 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @Anyon3 on GitHub (Feb 3, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1087

Hey,

I'm not sure if there is a way for make this work :

I'm unable to run any app GUI inside a private directory folder (--noprofile --private=~/something) with a different hostname (using --hostname) of my machine. If I understand correctly the problem, it related with the .Xauthority generated by Xorg, since it contain the hostname of my machine, it make the jumble inside the sandbox

Can firejail make an unique .Xauthority on the target private directory with the hostname passed in option ?

Some errors log

chromium --no-sandbox

No protocol specified
[12:12:0203/075239.161912:ERROR:browser_main_loop.cc(272)] Gtk: cannot open display: :0.0

surf (surf browser of suckless.org)

[4:9:0203/075354.816916:ERROR:bus.cc(427)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[100💯0203/075355.667399:ERROR:gl_context_glx.cc(187)] Failed to create GL context with glXCreateContextAttribsARB.
[100💯0203/075355.667464:ERROR:gpu_info_collector.cc(50)] gl::init::CreateGLContext failed
[100💯0203/075355.667476:ERROR:gpu_info_collector.cc(118)] Could not create context for info collection.
[100💯0203/075355.667504:ERROR:gpu_init.cc(85)] gpu::CollectGraphicsInfo failed (fatal).
[100💯0203/075355.668887:ERROR:gpu_child_thread.cc(327)] Exiting GPU process due to errors during initialization
[4:21:0203/075355.673700:ERROR:browser_gpu_channel_host_factory.cc(113)] Failed to launch GPU process.
[4:21:0203/075355.673840:ERROR:browser_gpu_channel_host_factory.cc(113)] Failed to launch GPU process.
[4:21:0203/075355.673905:ERROR:browser_gpu_channel_host_factory.cc(113)] Failed to launch GPU process.
[4:21:0203/075355.673968:ERROR:browser_gpu_channel_host_factory.cc(113)] Failed to launch GPU process.
[4:21:0203/075355.674035:ERROR:browser_gpu_channel_host_factory.cc(113)] Failed to launch GPU process

firefox

No protocol specified
Error: cannot open display: :0.0

Originally created by @Anyon3 on GitHub (Feb 3, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1087 Hey, I'm not sure if there is a way for make this work : I'm unable to run any app GUI inside a private directory folder (--noprofile --private=~/something) with a different hostname (using --hostname) of my machine. If I understand correctly the problem, it related with the .Xauthority generated by Xorg, since it contain the hostname of my machine, it make the jumble inside the sandbox Can firejail make an unique .Xauthority on the target private directory with the hostname passed in option ? Some errors log `chromium --no-sandbox` > No protocol specified > [12:12:0203/075239.161912:ERROR:browser_main_loop.cc(272)] Gtk: cannot open display: :0.0 `surf` (surf browser of suckless.org) > [4:9:0203/075354.816916:ERROR:bus.cc(427)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory > [100:100:0203/075355.667399:ERROR:gl_context_glx.cc(187)] Failed to create GL context with glXCreateContextAttribsARB. > [100:100:0203/075355.667464:ERROR:gpu_info_collector.cc(50)] gl::init::CreateGLContext failed > [100:100:0203/075355.667476:ERROR:gpu_info_collector.cc(118)] Could not create context for info collection. > [100:100:0203/075355.667504:ERROR:gpu_init.cc(85)] gpu::CollectGraphicsInfo failed (fatal). > [100:100:0203/075355.668887:ERROR:gpu_child_thread.cc(327)] Exiting GPU process due to errors during initialization > [4:21:0203/075355.673700:ERROR:browser_gpu_channel_host_factory.cc(113)] Failed to launch GPU process. > [4:21:0203/075355.673840:ERROR:browser_gpu_channel_host_factory.cc(113)] Failed to launch GPU process. > [4:21:0203/075355.673905:ERROR:browser_gpu_channel_host_factory.cc(113)] Failed to launch GPU process. > [4:21:0203/075355.673968:ERROR:browser_gpu_channel_host_factory.cc(113)] Failed to launch GPU process. > [4:21:0203/075355.674035:ERROR:browser_gpu_channel_host_factory.cc(113)] Failed to launch GPU process `firefox` > No protocol specified > Error: cannot open display: :0.0 >
gitea-mirror 2026-05-05 06:33:25 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@netblue30 commented on GitHub (Feb 4, 2017):

You are right, this is a bug, thanks.

<!-- gh-comment-id:277446629 --> @netblue30 commented on GitHub (Feb 4, 2017): You are right, this is a bug, thanks.
Author
Owner

@chiraag-nataraj commented on GitHub (Sep 30, 2018):

Seems to work now. @Anyon3 If you still have this problem, please feel free to re-open.

<!-- gh-comment-id:425686182 --> @chiraag-nataraj commented on GitHub (Sep 30, 2018): Seems to work now. @Anyon3 If you still have this problem, please feel free to re-open.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#744
No description provided.