in reply to How to get all shared libs of a path?
A note on running ldd, quoting the man page:
Security
In the usual case, ldd invokes the standard dynamic linker (see ld.so(8)) with the LD_TRACE_LOADED_OBJECTS environment variable set to 1, which causes the linker to display the library dependencies. Be aware, however, that in some circumstances, some versions of ldd may attempt to obtain the dependency information by directly executing the program. Thus, you should never employ ldd on an untrusted executable, since this may result in the execution of arbitrary code. A safer alternative when dealing with untrusted executables is:
$ objdump -p /path/to/program | grep NEEDED
A note on dependencies: Make the distribution-provided package manager (apt/dpkg, rpm, yum, whatever) resolve dependencies. Put the executables into distribution-specific packages (see distribution documentation for details), hand out the packages instead of bare executables, have the IT department install the packages instead of the bare executables. https://serverfault.com/questions/18620/how-to-create-an-rpm-for-suse may help creating SuSE packages.
(Yes, I know my favorite distribution Slackware is an exception to the rule: You are expected to resolve dependencies by hand, or simply install ALL packages. But most other distributions do an excellent job at managing dependencies.)
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to get all shared libs of a path?
by ovedpo15 (Pilgrim) on Jun 20, 2021 at 18:56 UTC | |
by afoken (Chancellor) on Jun 20, 2021 at 20:33 UTC |