mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1812] What is the best way to move a file outside a private jail ? #1231
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#1231
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 @thiswillbeyourgithub on GitHub (Mar 12, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1812
Hi,
Here's the situation : I occasionnaly create private jails to run firefox using
firejail --private firefox -no-remote -private, this way it is in no way altered by the amount of extensions and addons I have normally running ^^.The issue is that sometimes I end up having to download a file using this instance of firefox and I can't access it with the rest of the system. Sure using
firejail --join=XXXXI can see it in the terminal but I can't seem to move it anywhere outside the chroot. Which in a way is good, it shows great security.So here's my question : what is the best way to access a file downloaded in a private jail and move it outside the jail ? if there's any.
Your lights on this would really help :)
Thanks !
@SkewedZeppelin commented on GitHub (Mar 12, 2018):
You can switch to using
--private=directory, but if you goal is to prevent writing to disk that wouldn't work.You can use
mkdir /tmp/xyz,--private=/tmp/xyzand laterrm -rfbut it'd be a bit tedious.I guess you could make a bash script like
save somewhere and just invoke it like "./fjtmp firefox"
you can also substitute
rm -rfwithsrm -rfvbe warned there are a few distros in which /tmp is written to disk and not simply in ram
@netblue30 commented on GitHub (Mar 13, 2018):
You can grab them with --get=XXXX - in the man page:
@thiswillbeyourgithub commented on GitHub (Mar 13, 2018):
Oh no I totally missed this in the manual :(. Thanks a lot I'm really sorry for the trouble ! I'll close this.