Displaying 6 results from an estimated 6 matches for "dt_audit".
2020 Feb 18
3
Re: alternatives for hooking dlopen() without LD_LIBRARY_PATH or LD_AUDIT?
...to LD_AUDIT for getting a library with la_objsearch() to
>> actually do something (but doesn't obviate the need for la_obsearch()
>> to be in a separate library, rather than part of the main executable,
>> unless a library can be reused as its own audit library...).
>
> DT_AUDIT support has yet to be implemented in glibc:
>
> <https://sourceware.org/bugzilla/show_bug.cgi?id=24943>
> <https://sourceware.org/ml/libc-alpha/2019-08/msg00705.html>
>
> If you go on record saying that you need this, maybe someone will review
> the patch. Sor...
2020 Feb 17
2
Re: alternatives for hooking dlopen() without LD_LIBRARY_PATH or LD_AUDIT?
On 2/14/20 3:29 PM, Eric Blake wrote:
> On 2/14/20 1:02 PM, Eric Blake wrote:
>
>> Writing my own dlopen() wrapper directly in nbdkit seems like a
>> non-starter (my override has to come from a shared library before it
>> can replace the shared version that would be imported from -ldl, at
>> least for all subsequent shared library loads that want to bind to the
2020 Feb 21
0
Re: alternatives for hooking dlopen() without LD_LIBRARY_PATH or LD_AUDIT?
* Eric Blake:
> So with that said, here's a question I just thought of:
>
> If your patch for glibc support for DT_AUDIT is incorporated, is it
> possible to mark a shared library as its own audit library via
> DT_AUDIT? That is, if nbdkit-vddk-plugin.so can provide entry points
> for _both_ the nbdkit interface (which satisfies dlopen() from the
> nbdkit binary) and la_version/la_objsearch() (which satis...
2020 Feb 17
0
Re: alternatives for hooking dlopen() without LD_LIBRARY_PATH or LD_AUDIT?
...e an
> alternative to LD_AUDIT for getting a library with la_objsearch() to
> actually do something (but doesn't obviate the need for la_obsearch()
> to be in a separate library, rather than part of the main executable,
> unless a library can be reused as its own audit library...).
DT_AUDIT support has yet to be implemented in glibc:
<https://sourceware.org/bugzilla/show_bug.cgi?id=24943>
<https://sourceware.org/ml/libc-alpha/2019-08/msg00705.html>
If you go on record saying that you need this, maybe someone will review
the patch. Sorry. 8-(
Florian
2020 Feb 17
0
Re: [nbdkit PATCH v5 4/4] vddk: Drive library loading from libdir parameter.
...dlopen() with an absolute file name would
help the dynamic linker alter its search path for its dependencies.
That may have answered our question, but not the way we wanted. :(
la_objsearch() seems like it should catch these DT_NEEDED entries, but
given the fact that glibc does not yet support DT_AUDIT for
single-process rather than global auditing, we're stuck with having to
set LD_AUDIT in the environment (which is no different than having to
set LD_LIBRARY_PATH in the environment).
Next idea: how hard would it be to re-exec nbdkit? Here's what I'm
envisioning:
nbdkit proper...
2020 Feb 17
2
Re: [nbdkit PATCH v5 4/4] vddk: Drive library loading from libdir parameter.
Unfortunately this series doesn't work with the real VDDK library :-(
I see:
nbdkit: debug: vddk: config_complete
nbdkit: debug: dlopen shim prefix set to /home/rjones/tmp/vddk-6.7.3/vmware-vix-disklib-distrib/lib64
Then a little bit later during VDDK initialization it fails with:
nbdkit: debug: VixDiskLib: Could not load default plugins from