From aee6e90f93e285016b6cd9c8bd00402c19ba271b Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 19 Jul 2021 15:47:51 -0300 Subject: 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 --- sysdeps/generic/ldsodefs.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sysdeps') diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index c26860430c..c38a89f3d0 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -1395,6 +1395,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 -- cgit v1.2.3