mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1644] strange nested loop in firejail 0.9.50 when trying to use it as login-shell #1105
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#1105
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 @lowshoe on GitHub (Nov 13, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1644
trying to use firejail as login-shell. that worked perfectly in 0.9.44.10 but now breaks with an error. possibly related to #1326.
the same happens when i try to access the host through ssh with the same user. I also tried with firejail-0.9.48 but the error is the same.
@netblue30 commented on GitHub (Nov 18, 2017):
We've seen this one coming and going., definitely a bug!
@chiraag-nataraj commented on GitHub (Jul 15, 2018):
Is this still an issue on 0.9.54?
@lowshoe commented on GitHub (Aug 8, 2018):
just tested with ssh. unfortunately yes.
[..]
@chiraag-nataraj commented on GitHub (Aug 12, 2018):
So you've set up
firejailas your shell. Did you also usefirecfgby any chance? This looks like a case where some program you're trying to run upon login is also independently sandboxed throughfirecfgand it requires something that's denied with the defaul profile.@lowshoe commented on GitHub (Aug 13, 2018):
No, firecfg is not used. I'm trying to use firejail as login-shell for users that connnect though SSH to a server.
@chiraag-nataraj commented on GitHub (Aug 14, 2018):
Right, I understand that. Can you edit
/etc/firejail/login.usersand add the argument--debugto your username's line (there is an example of the format in the file itself). Let's see if we can get some more output.@chiraag-nataraj commented on GitHub (Aug 14, 2018):
Okay, so I found that if I just login as
dummy(a username I made up in my VM), I can get it so that setting/usr/local/bin/firejailas the shell will lead to a warning that/bin/bashwill be run without any additional sandboxing. This is strange because I never asked for said additional sandboxing. I'm going to investigate.@lowshoe commented on GitHub (Aug 15, 2018):
ok, so i added
myusername:--debugin/etc/firejail/login.users. Now connecting through SSH fails withError: invalid --debug command line optionBut i can
suto that user as root an the host itself:[..]
[..]
@smitsohu commented on GitHub (Dec 23, 2020):
I'm getting something quite similar by setting SHELL to the path of a firejail executable.
Just use a non-canonical path for SHELL, like for example
/usr/bin///firejail.@smitsohu commented on GitHub (Dec 26, 2020):
@lowshoe you didn't by chance copy the firejail binary to
/bin/firejailor create a link with that name?I know the issue is quite old ....
@smitsohu commented on GitHub (Jan 29, 2021):
I'll send a pull request to close this issue.
If someone finds the issue to persist, please complain here or open a new bug report.
@Drakano commented on GitHub (May 28, 2021):
It's still present. Just the error text has slightly changed.
environment
ssh (w/o firejail debug)
su -l (w/ debug)
@jsquyres commented on GitHub (Jun 2, 2021):
See #4326 for a possible solution.
@rusty-snake commented on GitHub (Jun 10, 2021):
This issue is fixed by #4326 as I understand.