]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: remove redundant __libc_enable_secure check from fillin_rpath
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 18 Dec 2017 21:46:07 +0000 (21:46 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 19 Dec 2017 21:53:11 +0000 (21:53 +0000)
commit10e93d968716ab82931d593bada121c17c0a4b93
tree9294d2de807ee0e90c40389fcff7b916c270c372
parentce16eb52c0987fd94bc13d51ddc787134a7e4b0c
elf: remove redundant __libc_enable_secure check from fillin_rpath

There are just two users of fillin_rpath: one is decompose_rpath that
sets check_trusted argument to 0, another one is _dl_init_paths that
sets check_trusted argument to __libc_enable_secure and invokes
fillin_rpath only when LD_LIBRARY_PATH is non-empty.

Starting with commit
glibc-2.25.90-512-gf6110a8fee2ca36f8e2d2abecf3cba9fa7b8ea7d,
LD_LIBRARY_PATH is ignored for __libc_enable_secure executables,
so check_trusted argument of fillin_rpath is always zero.

* elf/dl-load.c (is_trusted_path): Remove.
(fillin_rpath): Remove check_trusted argument and its use,
all callers changed.
ChangeLog
elf/dl-load.c