mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #343] --blacklist=~/.mozilla warns of invalid file #241
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#241
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 @Fred-Barclay on GitHub (Mar 1, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/343
Firejail 0.9.38 on LMDE Betsy (closely related to Debian Jessie.)
I came across this while working on the profile for the Pale Moon browser. ~/.mozilla is viewable and read-write even when not whitelisted. Attempts to blacklist the directory, whether in the profile or in the startup arguments, fail with the warning that ~/.mozilla is an invalid file (which is half-way correct; it's a directory). However, blacklisting other directories, such as ~/.Downloads, succeeds.
fred@aussie ~ $ firejail --blacklist=~/.mozilla --debug palemoon | grep mozillaReading profile /home/fred/.config/firejail/palemoon.profileReading profile /etc/firejail/disable-mgmt.incReading profile /etc/firejail/disable-secret.incReading profile /etc/firejail/disable-common.incReading profile /etc/firejail/disable-devel.incReading profile /etc/firejail/whitelist-common.inc...Debug 337: new_name #/home/fred/.themes#Warning: /home/fred/.mozilla is an invalid file, skipping...When I blacklist a different directory such as Downloads:
fred@aussie ~ $ firejail --blacklist=~/Downloads --debug palemoon | grep DownloadsReading profile /home/fred/.config/firejail/palemoon.profileReading profile /etc/firejail/disable-mgmt.incReading profile /etc/firejail/disable-secret.incReading profile /etc/firejail/disable-common.incReading profile /etc/firejail/disable-devel.incReading profile /etc/firejail/whitelist-common.inc...Disable /home/fred/DownloadsIn case the profile is to blame:
# Pale Moon Browser profileinclude /etc/firejail/disable-mgmt.incinclude /etc/firejail/disable-secret.incinclude /etc/firejail/disable-common.incinclude /etc/firejail/disable-devel.inccaps.drop allseccompprotocol unix,inet,inet6,netlinknetfiltertracelognorootwhitelist ${DOWNLOADS}whitelist ~/.moonchild productionswhitelist ~/.cache/moonchild productions/pale moon# Uncommented in Firefox profile. If you run into trouble you may want to enable# (some of) them.#whitelist ~/dwhelper#whitelist ~/.zotero#whitelist ~/.lastpass#whitelist ~/.vimperatorrc#whitelist ~/.vimperator#whitelist ~/.pentadactylrc#whitelist ~/.pentadactyl#whitelist ~/.keysnail.js#whitelist ~/.config/gnome-mplayer#whitelist ~/.cache/gnome-mplayer/plugin#blacklist ~/.mozilla/include /etc/firejail/whitelist-common.inc# experimental features#private-etc passwd,group,hostname,hosts,localtime,nsswitch.conf,resolv.conf,gtk-2.0,pango,fonts,adobe,mime.types,mailcap,asound.conf,pulseI'm not sure if this is actually a bug or whether I'm to blame. Hopefully someone with a better understanding of the situation can chime in. :)
Thanks!
Fred
@netblue30 commented on GitHub (Mar 2, 2016):
I put in some debug code to see where the message is coming from. Give it a try, thanks!
@Fred-Barclay commented on GitHub (Mar 2, 2016):
Sorry--I'm missing something. Where's the debug code? :)
EDIT: found it in src, but where do I put it (in my computer)? I had installed firejail via .deb rather than source code--should I download the code from here and compile?
@netblue30 commented on GitHub (Mar 4, 2016):
I'll have a testing release coming in about one week.
@Fred-Barclay commented on GitHub (Mar 4, 2016):
Sounds good. :)
I'm going to set up a testing VM and start building firejail from source too. This will probably make it easier on all parties.
(I try to avoid compiling on my main machine. Just a personal preference.)