Ingo Schwarze <schwa...@usta.de> wrote: > Hi Theo, > > Theo de Raadt wrote on Thu, Jul 09, 2020 at 09:47:26AM -0600: > > > This time, they become invisible. > [...] > > There are many circumstances where ltrace is not suitable. > [...] > > We fiddle with programs all the time, to inspect them. > > Fair enough, then. > > The following variables already exist according to man -ak Ev~'\<LD_': > > * LD_PRELOAD > * LD_LIBRARY_PATH > * LD_BIND_NOW > * LD_TRACE_LOADED_OBJECTS > * LD_DEBUG > > I susspect the name should: > > * start with "LD_" > * contain "TIME" > * contain "SYSCALL" or "KTRACE"
Actually the LD_ in those names refers to ld.so, but ld.so is not making this decision. libc is. It also works for static binaries, because the checking position is inside libc initialization. That said, I don't like the originally proposed prefix STDIO_