[PATCH] elf: Add la_objsearch2 with lmid parameter for rtld-audit [BZ #34093]

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Wed Sep 23 19:54:58 GMT 2026



On 23/09/26 16:09, DJ Delorie wrote:
> On Wed, Sep 23, 2026 at 2:58 PM Adhemerval Zanella Netto
> <adhemerval.zanella@linaro.org> wrote:
>> Agreed, I think it would better to start document this properly. The only
>> documentation we have for this is from rtld-audit*7) from man-pages [1].
>>
>> [1] https://man7.org/linux/man-pages/man7/rtld-audit.7.html
> 
> And https://inbox.sourceware.org/libc-alpha/1707441f-446e-4d98-8ed4-1eb9d50eae28@redhat.com/T/#t
> once it's accepted.

Indeed, thanks for working on this.

> 
>> My take to bump LAV_CURRENT for this specific new interface is la_objsearch2
>> acts as a superset of la_objsearch; so running an audit library on an
>> old glibc will not trigger the new callback.
> 
> Right, but the auditor can detect that by providing both callbacks and
> seeing which one gets called.

Right, but then you move the version check from glibc to the audit module itself.
I am not sure if this is a better semantic.


More information about the Libc-alpha mailing list