mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2433] Use Firejail as shell - shutdown issue #1616
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#1616
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 @gaellalire on GitHub (Feb 20, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2433
When we use Firejail to launch background job and then exit the bash session Firejail is waiting all background jobs to finish before exiting.
SSHd is waiting for Firejail which is waiting for all its children.
I think following method could work :
When the first grand child exit, Firejail-Launcher will exit and SSHd will stop the connection. But Firejail will continue to run while there is at least one child of bash which run.
@gaellalire commented on GitHub (Dec 19, 2019):
@rusty-snake this ticket is nothing like #3042 and probably not like #2786 .
When initial process finishes I don't want its children to be killed.
When initial process finishes I want firejail to die so SSHd will stop the connection.
But if firejail die children of initial process will not work.
That why I proposed to separate firejail-launcher from firejail
When pid 4 die, pid 2 will stop.
Because their parent die, pid 5 and pid 3 will have their grand parent as parent.
So we will get
And when all children of pid 3 die, pid 3 will die too