]> git.ipfire.org Git - thirdparty/glibc.git/commit - elf/rtld.c
elf: Add _dl_audit_activity_map and _dl_audit_activity_nsid
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 20 Jul 2021 14:03:34 +0000 (11:03 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 Dec 2021 11:40:38 +0000 (08:40 -0300)
commit3dac3959a5cb585b065cef2cb8a8d909c907e202
tree7cafc3b94478fc6050c7a6db09f98bf4ac448f9d
parentaee6e90f93e285016b6cd9c8bd00402c19ba271b
elf: Add _dl_audit_activity_map and _dl_audit_activity_nsid

It consolidates the code required to call la_activity audit
callback.

Also for a new Lmid_t the namespace link_map list are empty, so it
requires to check if before using it.  This can happen for when audit
module is used along with dlmopen.

Checked on x86_64-linux-gnu, i686-linux-gnu, and aarch64-linux-gnu.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
elf/dl-audit.c
elf/dl-close.c
elf/dl-load.c
elf/dl-open.c
elf/rtld.c
sysdeps/generic/ldsodefs.h