Re: [PATCH] tests: Handle system-wide tunables in rseq tests
Michael Jeanson <[email protected]>
| Newsgroups | gmane.comp.lib.glibc.alpha |
|---|---|
| Message-ID | <[email protected]> |
On 2026-07-06 17:21, DJ Delorie wrote: > Michael Jeanson <[email protected]> writes: >> Also one more question, are system-wide tunables supposed to work with >> statically linked executables? In my test environment I'm able to make >> tst-rseq fail with a suitable /etc/tunables.conf but it seem to have no >> impact on tst-rseq-static. > > The current code is conditional on both SHARED and USE_LDCONFIG, as the > data comes from /etc/ld.so.cache. > > I don't remember exactly what the blocker here was, as we do support > calling dlopen() from a static binary, and I assume that must load > /etc/ld.so.cache. That should probably be part of the user documentation, it seenms like an easy pitfall since the GLIBC_TUNABLE variable is not affected by the linking type of a binary.