mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5326] librewolf: Error: Can't find profile directory #2957
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#2957
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 @ghost on GitHub (Aug 20, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5326
[Firejail not working with Librewolf]
So I installed Librewolf prior to installing Firejail.
Librewolf was installed via the Debian Repo:
Also I enabled firejail with system by doing
sudo firecfg. Aswell as editing some of the profiles in/etc/firejaillike Firefox as well as adding firejail at the begining of the execution path in/etc/share/applications/firefox.desktopand confirmed worked. Did the same for Libewolf (librewolfs desktop name is defferent explained later) and wouldn't work so I changed it back to normal.Librewolf works when fine launching without firejail. However When I do
firejail librewolfit says something along the linesWhen looking at librewolf profile I never blacklisted Network acess I just did
blacklist /sys/*to block directorys from being read just like firefox and firefox works and also blocks access.Furthermore I looked at
/etc/share/applicationsand librewolfs desktop file is namedstart-librewolf.desktopthere is nolibrewolf.desktop.This made me think I needed to make a profile in
/etc/firejailnamedstart-librewolf.profileSo thats what I did and pasted the same info/rules from the librewolf.profile into it.
This did not fix firejail in regards to Librewolf.
What is the work around or what am I doing wrong?
Edit: This is likely a duplicate of:
@ghost commented on GitHub (Aug 20, 2022):
Firejail uses the name of the executable to pick the correct security profile. So, take a look inside your start-librewolf.desktop and tell us what it refers to on the Exec=... line. I'm assuming 'librewolf' to be the binary, so it would be helpful if you can post output of running the below command:
@ghost commented on GitHub (Aug 21, 2022):
@glitsj16
When looking at
start-librewolf.desktopthe Exec I have:Exec=/usr/share/librewolf/librewolf%uBetween the time I posted and now, I tried creating
start-librewolf.profileagain and copyinglibrewolf.profilecontents to it. Then deleted (rm) thelibrewolf.profileand triedfirejail librewolf.This time I didn't get the network error but Librewolf, but gets stuck at selecting a firefox profile even though I never set profiles flag
-pin the Exec path for librewolf.Just saw your reply and running
firejail --ignore=quiet /usr/bin/librewolfdoes the same thing it brings me to the profile selector screen. I have no Librewolf profiles set.@ghost commented on GitHub (Aug 21, 2022):
@glitsj16
I don't have my ethernet plugged in right now (did earlier replying on differnet machine), but tried your command again this is what it says in terminal in background:
Reading profile /etc/firejail/default.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Warning: networking feature is disbaled in Firejail configuration file
** Note: you can use --noprofile to disable default.profile **
parent pid 6730, child pid 67371
Warning: cannot create a new user namespace, going forward without it...
child process initialized in 138.28 ms
Crash Annotation GraphicsCriticalError: | [0] [GFX1-]: glxtest: VA-API test failed: failed to intitialize VAAPI connection. (t=0.576573) [GFX1-]: glxtest: VA-API test failed: failed to intitialize VAAPI connection.
JavaScript error: resource://gre/modules/XULStore.jsm, line 68: Error: Can't find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 68: Error: Can't find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 68: Error: Can't find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 68: Error: Can't find profile directory.
@ghost commented on GitHub (Aug 21, 2022):
Let's double-check if firecfg created the needed symlinks for Librewolf correctly. Is /usr/bin/librewolf a symlink to /usr/share/librewolf/librewolf? Do you have a /usr/local/bin/librewolf pointing to /usr/bin/firejail?
Based on your posted output firejail is using the wrong profile (default.profile). Try adding the librewolf one explicitly:
@rusty-snake commented on GitHub (Aug 28, 2022):
First, use the bug report template if you have a bug. Second, mention your firejail version.
We have fixes for librewolf.profile which might no be in Debian stable, so can you try to install firejail from backports.
@rusty-snake commented on GitHub (Aug 28, 2022):
Also see #4899.
@ghost commented on GitHub (Sep 21, 2022):
@rusty-snake
So I uninstalled and then reinstalled firejail. Still wouldn't work so I looked for the latest
librewolf.profileand compared the profile obviously not the same. I have Backports repo enabled in apt sources not sure why it didn't pull/install from there?Anyway I just copied the
.profileinto mine with nano. Now Firejail is working with librewolf when launcing via commandline and by editing theexec=path in of thelibrewolf.desktopin applications.@rusty-snake commented on GitHub (Sep 21, 2022):
Because that's not how backports work. You need to explicitly tell it to use backports.
@mYnDstrEAm commented on GitHub (Oct 18, 2022):
These are the kind of problems why I suggested bundling Librewolf with firejail so if you install it, firejail is installed as well and the launcher already has firejail set, the profile is up-to-date, its well-supported and any problems are already or quickly solved.
One may need to wait for things to go from backports into the main repo before that can happen and there may be some other difficulties. If it gets implemented, Librewolf could add "sandboxed" to one of its key features.
Issue here: https://gitlab.com/librewolf-community/browser/linux/-/issues/282
@rusty-snake commented on GitHub (Oct 30, 2022):
I'm closing here due to inactivity, please fell free to request to reopen if you still have this issue.