[GH-ISSUE #3027] --x11 not working with chroot #1899

Closed
opened 2026-05-05 08:34:05 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @ichensky on GitHub (Nov 6, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3027

Steps to reproduce.

  1. Install debian in chroot
    $ debootstrap --arch=amd64 sid /chroot/sid
  2. Try to execute:
    $ firejail --x11 --chroot=/chroot/sid

Another related issue if for ex.
On the host OS run firefox. Then run firefox in the chroot dir.

$ firejail --chroot=/chroot/sid
$ firefox 

chrooted firefox would contains the same bookmarks, tabs, history from the host OS firefox.

It would be good, maybe, if firejail by default sandboxing X server from applications.

Originally created by @ichensky on GitHub (Nov 6, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/3027 Steps to reproduce. 1. Install debian in chroot ```$ debootstrap --arch=amd64 sid /chroot/sid``` 2. Try to execute: $ firejail --x11 --chroot=/chroot/sid --- Another related issue if for ex. On the host OS run `firefox`. Then run `firefox` in the chroot dir. ``` $ firejail --chroot=/chroot/sid $ firefox ``` chrooted `firefox` would contains the same bookmarks, tabs, history from the host OS `firefox`. It would be good, maybe, if `firejail` by default sandboxing X server from applications.
Author
Owner

@rusty-snake commented on GitHub (Nov 6, 2019):

It would be good, maybe, if firejail by default sandboxing X server from applications.

Surely it sounds good at first view, but I think its not good, because

  1. GTK+3 App run under Wayland if available. Then we must detect this.
  2. It will break a lot of user workflows.
<!-- gh-comment-id:550302165 --> @rusty-snake commented on GitHub (Nov 6, 2019): > It would be good, maybe, if firejail by default sandboxing X server from applications. Surely it sounds good at first view, but I think its not good, because 1. GTK+3 App run under Wayland if available. Then we must detect this. 2. It will break a lot of user workflows.
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#1899
No description provided.