mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6144] Add support for running inside distrobox #3200
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#3200
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 @neurodiverseEsoteric on GitHub (Dec 30, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6144
I tried running ˋfirejail --force ---private librewolfˋ inside a distrobox of archlinux on a fedora-based distro which doesn't offer librewolf at all, but firejail still ignored everything for being run inside of a "sandbox..."
@rusty-snake commented on GitHub (Dec 30, 2023):
How old is your firejail?
You should upgrade to fix multiple vulnerabilities.
@rusty-snake commented on GitHub (Dec 30, 2023):
Regarding LW:
https://librewolf.net/installation/fedora/
https://librewolf.net/installation/linux/
@neurodiverseEsoteric commented on GitHub (Dec 30, 2023):
@rusty-snake
It's archlinux, it shouldn't be that old
@neurodiverseEsoteric commented on GitHub (Dec 30, 2023):
@rusty-snake
That defeats the purpose of avoiding all host system and app breakages being blamed on my installing outsider software (it's not just librewolf)
@ghost commented on GitHub (Dec 30, 2023):
(1) I'm assuming the triple dash in
---privateis a typo and isn't the actual command you ran.(2) Firejail dropped the
--forceoption since version 0.9.54:db09546f29/RELNOTES (L490-L491)For example, when running
firejail --force --private librewolfon Arch Linux with 0.9.72, you should see:Not sure what the actual problem is. Can you rephrase your issue?
@neurodiverseEsoteric commented on GitHub (Dec 30, 2023):
Oh if it did throw that error i didn't see it...how do I put --force back in?
@rusty-snake commented on GitHub (Dec 30, 2023):
4c71ddbcdhttps://github.com/turgs/firejail-force
@neurodiverseEsoteric commented on GitHub (Dec 30, 2023):
ok thanks
@rusty-snake commented on GitHub (Dec 30, 2023):
FWIW, the following contaiers are supported
container=(lxc|docker|lxc-libvirt|systemd-nspawn|rkt) firejail ...according todb09546f29/src/firejail/no_sandbox.c (L29-L38)@neurodiverseEsoteric commented on GitHub (Dec 30, 2023):
Wait nob that release is a thouzandoulus years old...
@neurodiverseEsoteric commented on GitHub (Dec 30, 2023):
What would happen if I just naively added distrobox to the list?
@rusty-snake commented on GitHub (Dec 30, 2023):
Either it works or it does not work.
@neurodiverseEsoteric commented on GitHub (Dec 30, 2023):
It didn't work, firejail still detects a sandbox...
@rusty-snake commented on GitHub (Dec 30, 2023):
db09546f29/src/firejail/no_sandbox.c (L41-L47)That's the first check, if it still detects a sandbox you added the wrong value.
@neurodiverseEsoteric commented on GitHub (Dec 30, 2023):
Ah, it might be one of these pod-based labels:
3435f4d270/distrobox-create (L441-L469)(how did you get the code preview thing?)
@neurodiverseEsoteric commented on GitHub (Dec 31, 2023):
Okay I added the right values, but...
@neurodiverseEsoteric commented on GitHub (Dec 31, 2023):
Does podman support need to be added into firejail?
@rusty-snake commented on GitHub (Dec 31, 2023):
@neurodiverseEsoteric commented on GitHub (Dec 31, 2023):
By rootful podman you mean run distrobox with the --root flag?
@rusty-snake commented on GitHub (Dec 31, 2023):
I never used distrobox but firejail might not work inside rootless podman (https://github.com/containers/podman#rootless).
@neurodiverseEsoteric commented on GitHub (Jan 1, 2024):
Distrobox keeps freezing the entire OS whever I try creating a rootful container...and the podman command used to "enter" the container, ˋpodman exec,ˋ doesn't take the "--security-opt" flag, anyway...