mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3612] join-or-start can break #2266
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#2266
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 @smitsohu on GitHub (Aug 29, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3612
Bug and expected behavior
It is possible to run in a situation where
joinandjoin-or-startfail withError: no valid sandboxeven though the specified pid or the specified sandbox name is valid. This is a problem for applications like Okular thatjoin-or-startby default.Reproduce
Steps to reproduce the behavior:
firejail --join-or-start=blafirejail --join-or-start=blaexitthe first sandboxfirejail --join-or-start=blaBackground
A situation is created where the sandbox that is to be joined contains a Firejail leaf in the process tree:
Code in join.c detects this issue and causes Firejail to die:
80fddd3163/src/firejail/join.c (L338)Fortunately this code is (kind of) obsoleted by the introduction of RUN_SECCOMP_LIST and also by
f74fa71cf9and89fa2a7562.A fix should be easy, I'll send one later today or tomorrow, along with some smaller improvements.