mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4568] Firefox profile missing when using profile-sync-daemon #2707
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#2707
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 @cspoelstra on GitHub (Sep 21, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4568
Description
Firefox does not start when profile-sync-daemon (psd) is active. A popup appears that states: "Your Firefox profile cannot be loaded. It may be missing or inaccessible."
Steps to Reproduce
Behavior without a profile
When launching firefox with: firejail --noprofile /usr/bin/firefox, there is no issue and firefox starts as expected.
Additional context
This seems to be related due to psd mounting the firefox profiles directory to an overlay tmpfs as follows:
Please note that google-chrome uses the exact same psd setup and does not have this issue.
I have tried a combination of the following settings in my firefox.local, but nothing works.
Environment
Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
firejail /path/to/programOutput of
firejail --debug /path/to/program@rusty-snake commented on GitHub (Sep 22, 2021):
FTR: #4407
@cspoelstra commented on GitHub (Sep 22, 2021):
I've tried the following according to #4407, but firefox still does not start.
/etc/firejail/globals.local
~/.config/firejail/firefox.local
I've also tried putting the latter in firefox-common.local.
Output of
firejail --debug /usr/bin/firefox@rusty-snake commented on GitHub (Sep 23, 2021):
So
ls $XDG_RUNTIME_DIRshows the firefox profile. Then doesfirejail --noprofile ls $XDG_RUNTIME_DIRshow it? Andfirejail --noprofile --whitelist='${RUNUSER}/*firefox*' ls $XDG_RUNTIME_DIR?@cspoelstra commented on GitHub (Sep 23, 2021):
I found the cause of the issue this time. I also have anything-sync-daemon running, which I use to sync the browser cache folder to tmpfs. The default tmpfs it was using was /tmp as such:.
I've changed the asd config to sync to /dev/shm instead, and now firefox starts fine.
Thank you.
@rusty-snake commented on GitHub (Sep 23, 2021):
Alternative you can add
whitelist /tmp/asd-krist/home/krist/.cache/mozilla/firefoxto your firefox.local.@sak96 commented on GitHub (Aug 29, 2022):
PSD (v6.45) recent release has change the path of the profile atleast in archlinux.
instead of old fix:
@rusty-snake commented on GitHub (Aug 29, 2022):
Do you want to open a PR for it.
@sak96 commented on GitHub (Aug 29, 2022):
do you think pr make sense here ?
as this only effect people using psd
@sak96 commented on GitHub (Aug 29, 2022):
i can raise a pr. no issue.
did not realize that
noblacklist ${RUNUSER}/*firefox*was already added.@sak96 commented on GitHub (Aug 29, 2022):
i am guess #4407 changes will be kept for now ?
@rusty-snake
@rusty-snake commented on GitHub (Aug 29, 2022):
Yes, just add the new paths in addition.
@rusty-snake commented on GitHub (Aug 29, 2022):
Can we use
whitelist ${RUNUSER}/psd?@sak96 commented on GitHub (Aug 29, 2022):
it can be done but chrome or another browser may have their profile at same place and is it good to expose these to firefox.
just asking.
Update: this is a guess but atleast i would put every profile in psd if i made a folder like this.
@sak96 commented on GitHub (Aug 29, 2022):
@rusty-snake do you want me to make change to psd ?
since psd also deals with chrome and other browsers.
@sak96 commented on GitHub (Aug 29, 2022):
psd package has been reverted in archlinux/svntogit-community@022f6cdc71.
we can close this issue for now. the pr is put to draft and will reopen when it is upgraded.