mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
chroot: expose x11 session if FIREJAIL_CHROOT_X11 is set
add check so that environment variable FIREJAIL_CHROOT_X11 can be used to mount /tmp/.X11-unix into the chroot; issue #3568
This commit is contained in:
parent
d3b58663e4
commit
5081731862
1 changed files with 2 additions and 1 deletions
|
|
@ -165,7 +165,8 @@ void fs_chroot(const char *rootdir) {
|
|||
close(fd);
|
||||
|
||||
// x11
|
||||
if (getenv("FIREJAIL_X11")) {
|
||||
// if users want this mount, they should set FIREJAIL_CHROOT_X11
|
||||
if (getenv("FIREJAIL_X11") || getenv("FIREJAIL_CHROOT_X11")) {
|
||||
if (arg_debug)
|
||||
printf("Mounting /tmp/.X11-unix on chroot /tmp/.X11-unix\n");
|
||||
check_subdir(parentfd, "tmp/.X11-unix", 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue