]> sourceware.org Git - glibc.git/commit - elf/dl-lookup.c
Add run-time check for indirect external access
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 18 Jun 2021 23:50:39 +0000 (16:50 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 7 Oct 2021 17:26:48 +0000 (10:26 -0700)
commit349b0441dab375099b1d7f6909c1742286a67da9
tree398336e60fdfc9d0ea7b52b2b63d2c37b5996ac5
parent1bd888d0b705fa5ab7b443724288f7ba12939533
Add run-time check for indirect external access

When performing symbol lookup for references in executable without
indirect external access:

1. Disallow copy relocations in executable against protected data symbols
in a shared object with indirect external access.
2. Disallow non-zero symbol values of undefined function symbols in
executable, which are used as the function pointer, against protected
function symbols in a shared object with indirect external access.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/dl-lookup.c
sysdeps/generic/dl-protected.h [new file with mode: 0644]
This page took 0.042896 seconds and 5 git commands to generate.