Closed rrnewton closed 5 years ago
I'm possibly biased against LD_LIBRARY_PATH
: LD_LIBRARY_PATH considered harmful
Do you think it would be more explicit if we add a --library-path
(instead of --tool
), with default value of library_path
equals $(cwd)/lib
?
Another argument against LD_LIBRARY_PATH
is we need LD_PRELOAD
for our tracees
, not sys trace
itself.
fixed by f054f2b146ee2aa2041a14d97e3279fe499d7129. caller can specify --library-path
to set path where libdet.so
and libsystrace.so
are located.
Minor:
Right now if I run systrace from a different directory, it gets into trouble trying to find the hardcoded shared object path: