mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1717] [INFO] How exactly does one use --private-lib? #1156
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#1156
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 @chiraag-nataraj on GitHub (Jan 8, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1717
So I saw the
--private-liboption and decided to play around with it a bit, but I couldn't actually get it to like me. Using the firefox profile attached, I decided to tryfirejail --profile=.config/firejail/firefox.profile --private-lib=firefox shand it gave me this output:The thing is, those libraries are in
/usr/lib/firefox, and even includingx86_64-linux-gnu/firejailin the--private-libpath (which...shouldn't it already be included?) didn't help. I know I'm using--private-libwrong, I just don't know why.TIA!
firefox.txt
@topimiettinen commented on GitHub (Jan 8, 2018):
Please retry with --debug, that should tell a bit more what's happening.
@chiraag-nataraj commented on GitHub (Jan 8, 2018):
I get this after
Standard C library installed in 98.72 ms:@chiraag-nataraj commented on GitHub (Jan 8, 2018):
Here's the full output from
firejail --private-lib=firefox --debug-private-lib firefox:@topimiettinen commented on GitHub (Jan 8, 2018):
This means that "firefox" can't be accessed. Is it in your $PATH? Is /usr/lib/firefox a program, directory or symlink? What's output of
ls -ld /usr/{bin,lib}/firefox?
@chiraag-nataraj commented on GitHub (Jan 8, 2018):
/usr/lib/firefoxis the directory containing the libraries necessary for firefox to work. The actual binary is/usr/bin/firefox. Both exist as shown by:If I don't use
private-lib, everything loads fine, which impliesfirefoxis in my path and everything else is dandy (and, indeed, it is).@topimiettinen commented on GitHub (Jan 9, 2018):
I pushed
4ee58af2which should fix the issue, please try.@chiraag-nataraj commented on GitHub (Jan 9, 2018):
I don't know if it matters where I install
firejail, but I installed it to/usr/localand it didn't fix the problem (yes,firejailis actually running the one from git, not the distro-installed one - I checked). I will try overwriting the distro-installed version and see if that helps.@chiraag-nataraj commented on GitHub (Jan 9, 2018):
Still getting the exact same error:
@topimiettinen commented on GitHub (Jan 10, 2018):
How about now with
29cab4a046?@chiraag-nataraj commented on GitHub (Jan 10, 2018):
We get further this time:
So firefox starts up just fine. But trying to actually open any pages (other than
about:-style pages) results in the URL bar losing focus and no site actually loading. Since I don't get any error messages from--debug-private-lib, I'm not sure what exactly is going on (it's probably a library problem, but...no error messages).@chiraag-nataraj commented on GitHub (May 2, 2018):
The solution is given in #1920 (which also provides a mostly automatic way to generate the required library list). Closing this.