summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-07-19 15:47:51 -0300
committerCarlos O'Donell <carlos@redhat.com>2022-03-29 17:01:36 -0400
commit737eb83549bc0aec5143714504161fa55299582a (patch)
tree8269541943e3647a2755d0f2c011733cb05b9ee9 /sysdeps
parente135c4a91816446e63757d46d8e2a3b39d082bc8 (diff)
downloadglibc-737eb83549bc0aec5143714504161fa55299582a.tar.gz
elf: Add _dl_audit_objopen
It consolidates the code required to call la_objopen audit callback. Checked on x86_64-linux-gnu, i686-linux-gnu, and aarch64-linux-gnu. Reviewed-by: Florian Weimer <fweimer@redhat.com> (cherry picked from commit aee6e90f93e285016b6cd9c8bd00402c19ba271b) Resolved conflicts: elf/Makefile
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/ldsodefs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index fcbbf69748..a3b45d60b9 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -1360,6 +1360,11 @@ link_map_audit_state (struct link_map *l, size_t index)
return &base[index];
}
}
+
+/* Call the la_objopen from the audit modules for the link_map L on the
+ namespace identification NSID. */
+void _dl_audit_objopen (struct link_map *l, Lmid_t nsid)
+ attribute_hidden;
#endif /* SHARED */
#if PTHREAD_IN_LIBC && defined SHARED