Commit Graph

1 Commits

Author SHA1 Message Date
Adhemerval Zanella 815beee47c linux: Add memory sealing tests
The new tests added are:

1. tst-dl_mseal: check memory sealing is applied for statically
   linked binaries.

2. tst-dl_mseal-static: memory sealing is not applied if there is no
   gnu attribute for statically linked binaries.

3. tst-dl-mseal: check memory sealing works as expected on multiples places:
   - On the binary itself.
   - On a LD_PRELOAD library.
   - On a depedency modules (tst-dl_mseal-mod-{1,2}.so).
   - On a audit modules (tst-dl_mseal-auditmod.so).
   - On a dlopen dependency opened with RTLD_NODELETE).
   - On the libgcc_s Aopened by thread unwind.

4. tst-dl-mseal-noseal: check if mixing object with and without
   memory sealing works as expected.

Checked on x86_64-linux-gnu and aarch64-linux-gnu.
2025-03-07 08:46:49 -03:00