mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3844] firejail --private hanging #2421
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#2421
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 @AnthonyMonterrosa on GitHub (Dec 22, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3844
I've recently installed
firejail, have ransudo firecfg, and have no custom profiles:I'm trying to what needs whitelisting for a custom profile I'd like to make, and followed the documentation at
https://firejail.wordpress.com/documentation-2/building-custom-profiles/. While trying to runfirejail --private, it hung atchild process initialized..., and the prompt for the next command never came. So, it seems likefirejail --privatehangs for me, although I haven't it open for more then a few minutes.firejail firefoxandfirejail firefox --privatework as expected, which makes me think the problem is with runningfirejailwithout an application name.To test this, I ran
firejail /bin/bashwhich is the default behavior listed in the man page iffirejailisn't given an application name:(https://man7.org/linux/man-pages/man1/firejail.1.html):
firejail /bin/bashhas a permissions errorSo I tried
firejail --noprofile /bin/bashand that does not have a permission error, but still hangs.To put all of my information together, I tried
firejail --noprofile --privatewhich hangs, albeit with less output.Environment
screenfetch:firejail --version:ls -la /etc/firejail | grep "bash":Is there something I should be doing to have
firejail --privatework as expected? From here, I'm not sure what to try. I believefirejail-profilewas installed alongside myfirejailinstallation from the Arch User Repository, given the information I see on the install's page and its list of profiles.https://archlinux.org/packages/community/x86_64/firejail/@rusty-snake commented on GitHub (Dec 22, 2020):
fish (as login shell) and firejail bite each other quite often. Read #3434 for some discussions.
@AnthonyMonterrosa commented on GitHub (Dec 22, 2020):
Ah, I see. Fish isn't POSIX compliant and then things don't work. So
firejaildoesn't run/bin/bash, it runs$SHELL. I agree with some of the comments in #3434 that it'd be nice to have the man page updated.I'll try
firejail --shell=/bin/bashafter work.@AnthonyMonterrosa commented on GitHub (Dec 22, 2020):
Can confirm, running
firejail --private --shell=/bin/bashworks as expected.@AnthonyMonterrosa commented on GitHub (Dec 22, 2020):
In that case, should I close this issue? I'd like to see the manpage updated, whether it's from this issue or #3434.