mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1023] Root shell via --bandwidth and --shell #698
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#698
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 @mcarpenter on GitHub (Jan 6, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1023
[Against current HEAD, commit 64355]
In a first window run:
In a second window, firstly create a dumb shell that ignores
-c:and then secondly invoke that shell via the
--shelland--bandwidthflags to obtain root:Error occurs at
6435525696/src/firejail/bandwidth.c (L445-L451)I don't see any good reason to permit a user-specified shell to run a bandwidth command.
@Fred-Barclay commented on GitHub (Jan 7, 2017):
I can confirm this is "working" in Arch with firejail built from latest source. 😦
$ $ firejail --noprofile --name=x --net=enp6s0EDIT:
--noprofileisn't actually needed.$ firejail --name=x --net=enp6s0works just as well.EDIT:
@netblue30 commented on GitHub (Jan 7, 2017):
This one was quite stupid, thanks for finding it!
Fix on mainline:
5d43fdcd21Pushed also a fix on 0.9.44-bugfix branch. Interesting, we don't have this on 0.9.38-LTS branch.