mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #911] Read files from system #617
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#617
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 @peterzhu2118 on GitHub (Nov 13, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/911
How can I whitelist a folder so that it reads from the outer system and not from inside the sandbox (i.e. I have a code file in the system, how can I run that in sandboxed mode)?
@netblue30 commented on GitHub (Nov 15, 2016):
You can use --blacklist=somefolder. The folder will be visible outside the sandbox. In the sandbox the folder will be empty, with no read access to the regular user.
@peterzhu2118 commented on GitHub (Nov 16, 2016):
I don't think you are understanding the question, let me rephrase it. Lets say we have a file called file.txt in location
/home/user/file.txt. How can I make it so that that file is accessible within firejail?@netblue30 commented on GitHub (Nov 18, 2016):
By default most of the files are available in the sandbox. What file are you trying out?
@peterzhu2118 commented on GitHub (Nov 18, 2016):
So if I go into my /home/ folder in firejail, it it empty even through it contains a ton of stuff in the actual system. This is the profile I am using:
This is my firejail.config file (minus the comments):
@netblue30 commented on GitHub (Nov 19, 2016):
In your profile file, this is the line that is creating the problem. It will mask almost all the files in your home directory. You will be left with a small skeleton:
You might want to look into using whitelists, where you get the same skeleton plus the files you specify in whitelist command. Look for an example in /etc/firejail/firefox.