mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1353] Whitelist not working? #932
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#932
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 @rieje on GitHub (Jun 27, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1353
I run firefox in firejail sandbox and when I play videos using mpv from it, it's not using my mpv config. So I guess I have to whitelist my mpv config files. I have the
~/.config/mpvfolder but in it contains all my configs that are symlinked from my git repo, so this may be the problem.In my firefox.profile, I have:
Is this not enough?
@netblue30 commented on GitHub (Jun 28, 2017):
You would also add a whitelist in your firefox.profile for mpv config:
It shouldn't be a problem.
@rieje commented on GitHub (Jul 2, 2017):
@netblue30 It doesn't appear to be working--when I download a video and run it from Firefox, it's using default mpv settings instead of my customized ones. To be clear, here's what my config structure looks like.
~/.config/mpvis an actual folder, while all the config files inside are symlinked to under that folder, as you can see.In my
~/.config/firejail/firefox.profileI have the following (my attempted settings are in the 2 blocks of text from the start of the config). It's probably excessive, but I wasn't sure if recursion is applied for a directory and whatnot.Let me know what other information may be needed.
@liloman commented on GitHub (Jul 16, 2017):
Hi rieje,
I can't see your images but I hope it helps you.
I've just fixed a similar very long standing issue with my .mplayer/ dir. I don't use mpv but a custom Bash script that uses youtube-dl but I think It's related. ;)
The issue was:
I need the .mplayer/ folder be accessible from firefox (it's really a symlink to ~/dotfiles/mplayer/.mplayer in my settings but firejail whitelistes the target dir automatically)
I enabled it with:
whitelist ~/.mplayer
read-only ~/.mplayer
But I couldn't get to the target dir and when I launched mplayer from firefox It couldn't parse the config files and It was really annoying cause I disable the screensaver while playing from my mplayer config among other things.
What I did:
Launching a ls from vimperator console I realized that:
!ls ~/dotfiles/mplayer permissions were:
/home/user/dotfiles/mplayer:
total 4
dr---------. 2 nfsnobody nfsnobody 4096 mar 5 19:15 .mplayer
I fixed then with:
noblacklist ~/.mplayer
Now:
!ls ~/dotfiles/mplayer permissions are:
/home/user/dotfiles/mplayer:
total 4
drwxrwxr-x. 2 user user 4096 mar 5 19:15 .mplayer
Cheers
@rieje commented on GitHub (Jul 24, 2017):
@liloman Thanks for the detailed response. Do you use
--privateor--private <dir>for your firefox profile? In my particular scenario I'm using--private <dir>for my Firefox profile and when I launch firejail, I getWarning: "whitelist ~/.config/mpv" disabled by --privateso maybe--private <dir>is not supported by firejail for some reason.To be clear, my
~/.config/mpvsymlink structure looks like this:, which according to what I've read it doesn't matter because firejail should follow the symlinks appropriately. In my firefox.profile I have the following:
@liloman commented on GitHub (Jul 25, 2017):
No, I don't. I'm using this:
Maybe with:
you could get help.
Anyway for this kind of issues you can debug with 3 methods:
Using file:///home in the browser and seeing what looks like.
If you are using vimperator/X you can spawn a terminal inside the firejailed firefox with:
:!youterminal-name
I think you can also join a terminal inside a firefjail process with --join. :)
See if your files are there, obviously they aren't, and see what it really looks like and find out why. I will test with different scenarios from the more basic to the more restricted, kind git bisect. ;)
Cheers
@chiraag-nataraj commented on GitHub (Sep 30, 2018):
@rieje Is this still an issue?
@rieje commented on GitHub (Oct 2, 2018):
Unfortunately yes. I am using the latest version of firejail and removed any custom profile settings. Here's the contents of
/etc/firejail/firefox.profile, the only file I've touched. The only custom settings are:I use firejail like so:
firejail --seccomp --private=<path> /usr/bin/firefox -no-remote. Can anyone reproduce?@rusty-snake commented on GitHub (Jun 26, 2019):
@rieje can you do what @liloman say to look if the files are there?
@rieje commented on GitHub (Jun 26, 2019):
@rusty-snake They are not there. On Arch Linux, firejail version 0.9.60. My firefox.profile.
@rusty-snake commented on GitHub (Jun 27, 2019):
@rahiel confirming that
--private+--whitelistdidn't work (as it should), but why do you use--private.@rusty-snake commented on GitHub (Jun 7, 2020):
I'm closing here due to inactivity, please fell free to reopen if you still have this issue.