mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1938] fldd returns different output from ldd #1295
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#1295
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 (May 10, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1938
So after using the script in #1920, I got
Viberworking well enough. Keen to reduce the horrendous list of libraries that is displayed everywhere (obscuring the name of the executable!), I tried using--private-lib=with just the libraries I manually added, assumingflddwould find the rest. Surprisingly,Viberfailed to start, saying it couldn't find a specific library. After digging deeper, I realized it was becauselddwas resolving the libraries stored in/opt/viber/lib, whereasflddwas not. The libraries in/opt/viber/libdepend on various sundry things which aren't picked up byfldd, leading to the error message.@topimiettinen commented on GitHub (May 13, 2018):
fldddoes not read/etc.ld.so.conf, which is where nonstandard paths like/opt/viber/libcan be specified. Of courseflddcould be enhanced, but it could just useLD_TRACE_LOADED_OBJECTS=1 ld-linux.so $programlikeldddoes and parse the output.@chiraag-nataraj commented on GitHub (May 13, 2018):
The interesting thing is that
/opt/viber/libisn't specified anywhere in/etc/ld.so.confor/etc/ld.so.conf.d(that's the first thing I checked). But yes, I think we should useLD_TRACE_LOADED_OBJECTS=1asldddoes.@chiraag-nataraj commented on GitHub (May 30, 2018):
@netblue30 Is there any reason we aren't just using
ldd's method of setting the environment variable?@chiraag-nataraj commented on GitHub (Jul 9, 2018):
I don't trust myself enough to work on
fldd, but I think we should switch to using the same method aslddto enumerate the libraries needed.@chiraag-nataraj commented on GitHub (May 21, 2019):
@netblue30, is this fixable? If not, I'll go ahead and close, since I've found a workaround which works.