mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2477] Can you install applications within a firejail, kinda like chroot? #1626
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#1626
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 @Raj2032 on GitHub (Feb 25, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2477
Can you install applications within a firejail, kinda like chroot? If so how do I do this?
@smitsohu commented on GitHub (Feb 26, 2019):
Duplicate of #2360 ? Also note that there is indeed a
--chrootoption.@Raj2032 commented on GitHub (Feb 26, 2019):
I see.
@Raj2032 commented on GitHub (Feb 26, 2019):
@smitsohu I need a bit of help trying to understand some of the commands.
sudo debootstrap --arch=amd64 sid /chroot/sidI understanddebootstrapis trying to create a debian file system inside the folder but what does this mean--arch=amd64 sid /chroot/sid?sudo firejail --noprofile --chroot=/chroot/sidSo I understand that you are trying to start a firejail chroot service and I understand that you are using a
--noprofileas a profile as the default profile is too restrictive, but what does this mean--chroot=/chroot/sid?@smitsohu commented on GitHub (Feb 27, 2019):
@Raj2032 for easy and quick results I would just try the overlay approach, as described in #2360. You can also have something persistent with the
--overlay-namedoption.sudo debootstrap --arch=amd64 sid /chroot/sidWhat you are trying there is installing a new Debian inside /chroot/sid. sid is the name of the Debian release, amd64 is the instruction set of your cpu. I think what is still missing is a server from which the Debian image is downloaded.
It means that Firejail chroots into this folder before running the application.
@Raj2032 commented on GitHub (Feb 28, 2019):
--overlay-namedDoesn't this mean that everything inside the sandbox deletes eventually?Say if I downloaded lets just say Opera browser as a deb package, then how do I install that inside the firejail chroot?
Additionally how do I create multiple firejail chroot jails?