mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6490] Reintroduce shell feature #3290
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#3290
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 @ganeshjkale on GitHub (Sep 27, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6490
#OS : Redhat 9.4
#Firejail : v0.9.72
#Command
firejail --shell=/bin/rbash --profile=/etc/firejail/abc.profile /usr/bin/gedit
firejail --shell=/bin/rbash /usr/bin/gedit
firejail --shell=/bin/rbash --noprofile /usr/bin/gedit
shell feature enables to provide more security , not able to find its alternative and documentation.
please help
@rusty-snake commented on GitHub (Sep 27, 2024):
What do you mean with shell feature?
Why does it provide more security?
@kmk3 commented on GitHub (Sep 27, 2024):
Basic information is missing; please follow the feature request template:
@ganeshjkale commented on GitHub (Sep 27, 2024):
For eg. combine firejail with rbash or custom shell
@rusty-snake commented on GitHub (Sep 27, 2024):
firejail rbash?You need to explain in more detail.
@ganeshjkale commented on GitHub (Sep 27, 2024):
Firejail v0.9.70 below command.
firejail --shell=/bin/rbash application
@rusty-snake commented on GitHub (Sep 27, 2024):
And why is a
--shellrequired? Why not simplyfirejail /bin/rbash application?@ganeshjkale commented on GitHub (Sep 27, 2024):
#not working getting cannot execute binary gedit.
firejail /bin/rbash gedit
#working
firejail gedit
@rusty-snake commented on GitHub (Sep 27, 2024):
Maybe you should outline why you even need/want a rbash.
firejail /bin/bash -r -c gedit@luitzifa commented on GitHub (Nov 19, 2024):
IMHO this is a regression introduced in 0.9.72. The --shell feature was removed here: https://github.com/netblue30/firejail/issues/5190
The feature is needed to use firejail directly as login shell.
This issue is somewhat related to https://github.com/netblue30/firejail/issues/6206
@rusty-snake commented on GitHub (Nov 19, 2024):
A small wrapper (e.g.
firejail-sh) would fit this better IMHO.@luitzifa commented on GitHub (Nov 19, 2024):
I cannot get a wrapper like
to work with something like this:
ssh -o IdentityAgent=none testuser2@127.0.0.1 'ls /dev'I can login and execute the command, but i need to be able to execute the command directly over ssh in firejail.
@rusty-snake commented on GitHub (Nov 19, 2024):
Passing arguments could help. Untested:
@luitzifa commented on GitHub (Nov 21, 2024):
I tested your wrapper. Did not work :( , also the login is broken too.
@rusty-snake commented on GitHub (Nov 21, 2024):
If passing non-file-arguments to bash is required, remove the
--.@luitzifa commented on GitHub (Nov 21, 2024):
That did the trick. I will test it further:
Thanks