[Rpm-maint] [PATCH] fix loading NSS libraries prior to chrooting

Thierry Vignaud thierry.vignaud at gmail.com
Thu Apr 4 20:09:57 UTC 2013


Hi

rpm preloads NSS  libraries prior to chrooting in order to
fix group lookup in the chroot (when installing in a chroot):
lib/rpmrc.c-    /* Force preloading of dlopen()'ed libraries in case
we go chrooting */
lib/rpmrc.c:    (void) gethostbyname("localhost");


However in some cases, this is not enough.
See https://bugs.mageia.org/show_bug.cgi?id=9326
Strace showed that in some case, it tries to load libnss*so
after chrooting, way too late, resulting in borked installs.

The following patch makes rpm to really force preloading of
dlopen()'ed libraries before chrooting

Patches against master & rpm-4.11.x

Please apply.

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9326-rpm.diff
Type: application/octet-stream
Size: 667 bytes
Desc: not available
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20130404/70b131cc/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9326-rpm-master.diff
Type: application/octet-stream
Size: 644 bytes
Desc: not available
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20130404/70b131cc/attachment-0001.obj>


More information about the Rpm-maint mailing list