[PATCH] nss_files: Fix /etc/aliases null pointer dereference [BZ #24059]
Szabolcs Nagy
Szabolcs.Nagy@arm.com
Thu Mar 14 14:09:00 GMT 2019
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.
More information about the Libc-alpha
mailing list