This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] nss_files: Fix /etc/aliases null pointer dereference [BZ #24059]


On 14/03/2019 14:04, Florian Weimer wrote:
> * Szabolcs Nagy:
>> ideally the chroot should have all the runtime libs that
>> may be loaded, if that's too big hassle, then i'd fix
>> the test (to enforce DT_NEEDED or use dlopen before chroot).
> 
> Let's do it via dlopen.  See below.
> 
> Thanks,
> Florian
> 
> nss: Fix tst-nss-files-alias-truncated for default --as-needed linking
> 
> Linking to the NSS module directly does not work if the linker defaults
> to --as-needed because it will remove the apparently unused DSO
> reference and not generate a DT_NEEDED entry.  Use an explicit dlopen
> call, like in the other chroot tests involving NSS modules.
> 
> 2019-03-14  Florian Weimer  <fweimer@redhat.com>
> 
> 	* nss/tst-nss-files-alias-truncated.c (do_test): Load
> 	libnss_files.
> 	* nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
> 	but not with libnss_files.
> 	(tst-nss-files-alias-truncated.out): Depend on libnss_files.

looks reasonable.

thanks.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]