diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-07-19 18:42:26 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-12-28 08:40:38 -0300 |
commit | f0e23d34a7bdf6b90fba954ee741419171ac41b2 (patch) | |
tree | 5feb3808f994056a7e846f423124a718c242eb2f /elf/Makefile | |
parent | d1b38173c9255b1a4ae00018ad9b35404a7c74d0 (diff) | |
download | glibc-f0e23d34a7bdf6b90fba954ee741419171ac41b2.zip glibc-f0e23d34a7bdf6b90fba954ee741419171ac41b2.tar.gz glibc-f0e23d34a7bdf6b90fba954ee741419171ac41b2.tar.bz2 |
elf: Issue audit la_objopen for vDSO
The vDSO is is listed in the link_map chain, but is never the subject of
an la_objopen call. A new internal flag __RTLD_VDSO is added that
acts as __RTLD_OPENEXEC to allocate the required 'struct auditstate'
extra space for the 'struct link_map'.
The return value from the callback is currently ignored, since there
is no PLT call involved by glibc when using the vDSO, neither the vDSO
are exported directly.
Checked on x86_64-linux-gnu, i686-linux-gnu, and aarch64-linux-gnu.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'elf/Makefile')
-rw-r--r-- | elf/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile index 7fcb9c9..f427e2d 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -232,6 +232,7 @@ tests += restest1 preloadtest loadfail multiload origtest resolvfail \ tst-dl-is_dso tst-ro-dynamic \ tst-audit18 \ tst-audit19b \ + tst-audit22 \ tst-rtld-run-static \ # reldep9 tests-internal += loadtest unload unload2 circleload1 \ @@ -382,6 +383,7 @@ modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \ tst-auditmod19a \ tst-auditmod19b \ tst-audit19bmod \ + tst-auditmod22 \ # Most modules build with _ISOMAC defined, but those filtered out # depend on internal headers. @@ -1594,6 +1596,9 @@ $(objpfx)tst-audit19b.out: $(objpfx)tst-auditmod19b.so $(objpfx)tst-audit19b: $(objpfx)tst-audit19bmod.so tst-audit19b-ARGS = -- $(host-test-program-cmd) +$(objpfx)tst-audit22.out: $(objpfx)tst-auditmod22.so +tst-audit22-ARGS = -- $(host-test-program-cmd) + # tst-sonamemove links against an older implementation of the library. LDFLAGS-tst-sonamemove-linkmod1.so = \ -Wl,--version-script=tst-sonamemove-linkmod1.map \ |