[GH-ISSUE #3615] Opening up x-terminal-emulator with --noprofile exits the jail #2269

Closed
opened 2026-05-05 08:57:50 -06:00 by gitea-mirror · 10 comments
Owner

Originally created by @svc88 on GitHub (Aug 30, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3615

When i try to open up x-terminal-emulator or even xfce4-terminal from xfce4-terminal like this:
firejail --noprofile x-terminal-emulator
or
firejail --noprofile xfce4-terminal

It opens up the terminal but it ends in the original terminal like this:

Parent pid 13574, child pid 13575
Child process initialized in 10.26 ms

Parent is shutting down, bye...

It exits the jail. Why? What am i doing wrong?

firejail version 0.9.62

PS:
I tried this in a VM of the same OS Xubuntu 18.04 but there it doesnt exit the jail and i dont know why

Originally created by @svc88 on GitHub (Aug 30, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3615 When i try to open up `x-terminal-emulator` or even `xfce4-terminal` **from** `xfce4-terminal` like this: `firejail --noprofile x-terminal-emulator` or `firejail --noprofile xfce4-terminal` It opens up the terminal but it ends in the original terminal like this: ``` Parent pid 13574, child pid 13575 Child process initialized in 10.26 ms Parent is shutting down, bye... ``` It exits the jail. Why? What am i doing wrong? firejail version 0.9.62 PS: I tried this in a VM of the same OS Xubuntu 18.04 but there it doesnt exit the jail and i dont know why
Author
Owner

@rusty-snake commented on GitHub (Aug 30, 2020):

They blacklisted in disable-common.inc, but this is not included if you use --noprofile. Do you have a xfce4-terminal symlink or use firejail as login-shell?

<!-- gh-comment-id:683452709 --> @rusty-snake commented on GitHub (Aug 30, 2020): They blacklisted in disable-common.inc, but this is not included if you use `--noprofile`. Do you have a xfce4-terminal symlink or use firejail as login-shell?
Author
Owner

@svc88 commented on GitHub (Aug 30, 2020):

my xfce4-terminal opens up from the icon in the whisker menu - exo-open --launch TerminalEmulator

I dont know if i use firejail as login-shell, i just open up my terminal from the shortcut above and run the cmd firejail --noprofile xfce4-terminal and all it does is exit the jail and open up yet another xfce4-terminal

<!-- gh-comment-id:683453576 --> @svc88 commented on GitHub (Aug 30, 2020): my xfce4-terminal opens up from the icon in the whisker menu - `exo-open --launch TerminalEmulator` I dont know if i use firejail as login-shell, i just open up my terminal from the shortcut above and run the cmd `firejail --noprofile xfce4-terminal` and all it does is exit the jail and open up yet another xfce4-terminal
Author
Owner

@svc88 commented on GitHub (Aug 30, 2020):

I even downloaded gnome-terminal and its doing the same thing.
I did more tests and noticed that it doesnt do it if i run this on a minimal Ubuntu Server 18.04 with Xfce4. Seems like its only doing it on a Xubuntu 18.04 Desktop and not sure why. Can you try reproduce?

Update:
More tests reveals that when i run firejail --noprofile xfce4-terminal from Konsole, xterm, or gnome-terminal, the jail works with noprofile, however the only time the jail exists unexpectedly is when running that cmd within xfce4-terminal itself. (this all on Xubuntu Desktop)

BUT, if i try this on Ubuntu Server + xfce4, the jail runs fine from within xfce4-terminal
So im not sure why this happens.

<!-- gh-comment-id:683457422 --> @svc88 commented on GitHub (Aug 30, 2020): I even downloaded gnome-terminal and its doing the same thing. I did more tests and noticed that it doesnt do it if i run this on a minimal Ubuntu Server 18.04 with Xfce4. Seems like its only doing it on a Xubuntu 18.04 Desktop and not sure why. Can you try reproduce? Update: More tests reveals that when i run `firejail --noprofile xfce4-terminal` from `Konsole`, `xterm`, or `gnome-terminal`, the jail works with noprofile, however the only time the jail exists unexpectedly is when running that cmd **within** `xfce4-terminal` itself. (this all on Xubuntu Desktop) BUT, if i try this on Ubuntu Server + xfce4, the jail runs fine from within `xfce4-terminal` So im not sure why this happens.
Author
Owner

@bbhtt commented on GitHub (Aug 31, 2020):

however the only time the jail exists unexpectedly is when running that cmd within xfce4-terminal itself

issue 240 here

x-terminal-emulator or even xfce4-terminal from xfce4-terminal

/etc/alternatives/x-terminal-emulator -> /bin/example_terminal

<!-- gh-comment-id:683519899 --> @bbhtt commented on GitHub (Aug 31, 2020): > however the only time the jail exists unexpectedly is when running that cmd within xfce4-terminal itself issue 240 here > x-terminal-emulator or even xfce4-terminal from xfce4-terminal /etc/alternatives/x-terminal-emulator -> /bin/example_terminal
Author
Owner

@svc88 commented on GitHub (Aug 31, 2020):

@kortewegdevries makes sense thanks. However i dont see that issue mentioning anything about this:

BUT, if i try this on Ubuntu Server + xfce4, the jail runs fine from within xfce4-terminal
So im not sure why this happens.

If i missed anything in there regarding why xfce4-terminal jail runs fine if xfce4-terminal is installed on a Ubuntu Server + xfce4 environment, please tell me

<!-- gh-comment-id:683850786 --> @svc88 commented on GitHub (Aug 31, 2020): @kortewegdevries makes sense thanks. However i dont see that issue mentioning anything about this: > BUT, if i try this on Ubuntu Server + xfce4, the jail runs fine from within `xfce4-terminal` > So im not sure why this happens. If i missed anything in there regarding why xfce4-terminal jail runs fine if xfce4-terminal is installed on a Ubuntu Server + xfce4 environment, please tell me
Author
Owner

@bbhtt commented on GitHub (Aug 31, 2020):

minimal Ubuntu Server 18.04 with Xfce4

Do you mean the MinimalCD (https://help.ubuntu.com/community/Installation/MinimalCD) + xfce4 or this one https://ubuntu.com/server?

<!-- gh-comment-id:683867709 --> @bbhtt commented on GitHub (Aug 31, 2020): > minimal Ubuntu Server 18.04 with Xfce4 Do you mean the MinimalCD (https://help.ubuntu.com/community/Installation/MinimalCD) + xfce4 or this one https://ubuntu.com/server?
Author
Owner

@svc88 commented on GitHub (Aug 31, 2020):

The second one. More precisely this: http://www.cdimage.ubuntu.com/ubuntu-server/bionic/daily-live/current/bionic-live-server-amd64.iso + minimal setup shown below:

sudo apt-get install lightdm --no-install-recommends
sudo apt-get install lightdm-gtk-greeter xfce4 xfce4-goodies xfce4-clipman build-essential
<!-- gh-comment-id:683889079 --> @svc88 commented on GitHub (Aug 31, 2020): The second one. More precisely this: http://www.cdimage.ubuntu.com/ubuntu-server/bionic/daily-live/current/bionic-live-server-amd64.iso + minimal setup shown below: ``` sudo apt-get install lightdm --no-install-recommends sudo apt-get install lightdm-gtk-greeter xfce4 xfce4-goodies xfce4-clipman build-essential ```
Author
Owner

@bbhtt commented on GitHub (Aug 31, 2020):

I tried with a Debian bullseye minimal cd+lxde, same behaviour; tried with the base 20.04 server+ubuntu-desktop meta package, still same. I don't know how server works but I can't think of a reason on why it'd be any different on aVM:

I tried this in a VM of the same OS Xubuntu 18.04 but there it doesnt exit the jail and i dont know why

Maybe some else can offer insights...

<!-- gh-comment-id:683913818 --> @bbhtt commented on GitHub (Aug 31, 2020): I tried with a Debian bullseye minimal cd+lxde, same behaviour; tried with the base 20.04 server+ubuntu-desktop meta package, still same. I don't know how server works but I can't think of a reason on why it'd be any different on aVM: > I tried this in a VM of the same OS Xubuntu 18.04 but there it doesnt exit the jail and i dont know why Maybe some else can offer insights...
Author
Owner

@rusty-snake commented on GitHub (Oct 1, 2020):

still an issue?

<!-- gh-comment-id:702310060 --> @rusty-snake commented on GitHub (Oct 1, 2020): still an issue?
Author
Owner

@rusty-snake commented on GitHub (Nov 9, 2020):

I'm closing here due to inactivity, please fell free to request to reopen if you still have this issue.

<!-- gh-comment-id:724236365 --> @rusty-snake commented on GitHub (Nov 9, 2020): I'm closing here due to inactivity, please fell free to request to reopen if you still have this issue.
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#2269
No description provided.