mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2376] Automatic renaming of sandbox is unexpected #1582
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1582
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @reinerh on GitHub (Jan 29, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2376
A Debian user got bitten by the automatic renaming of sandboxes, when one with the intended name already exists: https://bugs.debian.org/920768
This behaviour is currently not documented in the manpage.
But it's also questionable if firejail should behave that way at all.
If the user explicitely requests a sandbox with name 'firefox', he expects one with that name (not 'firefox-1'). If it's not possible to provide this name, maybe it's better to not start at all, so the user can investigate.
@netblue30 commented on GitHub (Jan 31, 2019):
In the zsh script posted on Debian mail list (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920768#77), it looks like Vincent is trying to make sure there is only one instance of Firefox running in the system. The script checks "firejail --list" and then runs "firejail --name" or "firejail --join", depending on what --list returned.
The same "single instance" functionality is already implemented in Firefox. Firefox does it by default, unless --no-remote flag is used on Firefox command line. I would let Firefox do it, and modify the script to simply start the sandbox:
I will add a description for the --name changing in the man page, and also bring in a flag in /etc/firejail/firejail.config to disable the --name changing functionality (similar to the cgroup from a few days ago).
@reinerh commented on GitHub (Jan 31, 2019):
He described that the problem occured only sometimes, and when he is restarting firefox.
I think there is some race condition, so Firefox's "single instance" functionality does not work always:
@SkewedZeppelin commented on GitHub (Jan 31, 2019):
@reinerh I have seen Firefox most of all programs linger after quitting and only going away after a
pkill -9 firefox, most often when running under Nouveau.@netblue30 commented on GitHub (Feb 1, 2019):
I also see Firefox linger after closing the browser window, sometimes I need to do pkill -9 to really shut it down. This is what I have in commit
f79d62c1eaI think setting "name-change no" will fix the problem, unless firefox is locked and a pkill -9 is needed.
@reinerh commented on GitHub (Feb 8, 2019):
Thanks!