From 2b26b084e4e4ba58a2ff9f8f8f14c9bca506bd59 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 4 Oct 2019 21:22:54 +0200 Subject: elf: Never use the file ID of the main executable [BZ #24900] If the loader is invoked explicitly and loads the main executable, it stores the file ID of the main executable in l_file_id. This information is not available if the main excutable is loaded by the kernel, so this is another case where the two cases differ. This enhances commit 23d2e5faf0bca6d9b31bef4aa162b95ee64cbfc6 ("elf: Self-dlopen failure with explict loader invocation [BZ #24900]"). Reviewed-by: Carlos O'Donell Reviewed-by: Gabriel F. T. Gomes --- ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index a91af5403d..d2156e5fb0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-10-04 Florian Weimer + + [BZ #24900] + * elf/dl-load.c (_dl_map_object_from_fd): Do not use the file ID + when loading the executable as part of an explicit loader + invocation. + 2019-10-04 Florian Weimer nptl: Move pthread_attr_setinheritsched implementation into libc. -- cgit v1.2.3