]> sourceware.org Git - glibc.git/commit
elf: Simplify handling of lists of audit strings
authorFlorian Weimer <fweimer@redhat.com>
Fri, 3 Apr 2020 11:17:48 +0000 (13:17 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 3 Apr 2020 14:26:10 +0000 (16:26 +0200)
commit4c6e0415ef206a595c62d5d37e3b9a821782c533
tree26b4f51d3adbae7846873bd3c9cf1a3097b70b47
parentcea56af185eae45b1f0963351e3d4daa1cbde521
elf: Simplify handling of lists of audit strings

All list elements are colon-separated strings, and there is a hard
upper limit for the number of audit modules, so it is possible to
pre-allocate a fixed-size array of strings to which the LD_AUDIT
environment variable and --audit arguments are added.

Also eliminate the global variables for the audit list because
the list is only needed briefly during startup.

There is a slight behavior change: All duplicate LD_AUDIT environment
variables are now processed, not just the last one as before.  However,
such environment vectors are invalid anyway.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
elf/rtld.c
This page took 0.042495 seconds and 5 git commands to generate.