]> git.ipfire.org Git - thirdparty/glibc.git/commit
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)
committerCarlos O'Donell <carlos@redhat.com>
Tue, 29 Mar 2022 21:01:40 +0000 (17:01 -0400)
commit59da7f4ccb7f38c978e1b0b8c90b69dafd316904
tree88bb01aefbadf0e87b489379d9cbabbaea1bf8a3
parent737eb83549bc0aec5143714504161fa55299582a
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>
(cherry picked from commit 3dac3959a5cb585b065cef2cb8a8d909c907e202)
elf/dl-audit.c
elf/dl-close.c
elf/dl-load.c
elf/dl-open.c
elf/rtld.c
sysdeps/generic/ldsodefs.h