[PATCH] elf: Add la_objsearch2 with lmid parameter for rtld-audit [BZ #34093]
DJ Delorie
dj@redhat.com
Wed Sep 16 23:58:37 GMT 2026
> -/* Call the la_objsearch from the audit modules from the link map L. If
> - ORIGNAME is non NULL, it is updated with the previous name prior calling
> - la_objsearch. */
> +/* Call la_objsearch2 / la_objsearch from the audit modules for the link map L
> + and namespace NSID. */
> const char *_dl_audit_objsearch (const char *name, struct link_map *l,
> - unsigned int code)
> + Lmid_t nsid, unsigned int code)
> attribute_hidden;
I think what the part you removed is trying to say, is that if the
shared object you asked for was a symlink (such as libfoo.8.so ->
libfoo.8.1.so) then the original asked-for name (libfoo.8.so) is
what's passed to la_objsearch(), not the linked-to-file
(libfoo.8.1.so) that will be actually opened.
I suspect this info should go in the upcoming documentation instead,
unless it counts as an implementation detail. It should of course be
verified first ;-)
This new API should go in the upcoming documentation too, but it's not
fair to ask for that before either the API or the documentation are in
place ;-)
More information about the Libc-alpha
mailing list