[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1017590: marked as done (glibc 2.34 broke getpwnam calls under fakechroot)



Your message dated Thu, 25 Aug 2022 12:19:17 +0000
with message-id <E1oRBpN-00FIFZ-Aa@fasolo.debian.org>
and subject line Bug#1017590: fixed in fakechroot 2.20.1+ds-6
has caused the Debian Bug report #1017590,
regarding glibc 2.34 broke getpwnam calls under fakechroot
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1017590: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1017590
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: glibc
Version: 2.34-1
Severity: normal
X-Debbugs-Cc: josch@debian.org
Control: affects -1 + fakechroot mmdebstrap

Hi,

ultimately this probably needs to be fixed in fakechroot but I need some
help solving this problem from somebody who understands glibc.

Since the upload of glibc 2.34, getpwnam (and friends) under fakechroot
are not wrapped anymore. This means that instead of accessing
/etc/passwd from the chroot, the version from the host will be accessed,
leading to incorrect behaviour.

Since mmdebstrap uses fakechroot, this problem affects mmdebstrap as
well and breaks its autopkgtest.

There was a similar problem in the past. See
https://bugs.debian.org/993946 which in the end was fixed by letting
fakechroot wrap __nss_files_fopen.

I bisected glibc from git between 2.33 and 2.34 and found out, that this
fix broke again in this commit:

https://sourceware.org/git/?p=glibc.git;a=commit;h=6212bb67f4695962748a5981e1b9fea105af74f6

Do you have any idea why this commit is responsible and what fakechroot
could do to fix it? Attached the script I used to setup a minimal chroot
to bisect glibc git (this is for future-me in case I need to do this
ever again in the future).

Thanks!

cheers, josch

#!/bin/sh
set -e
rm -rf /install ./*
/glibc/configure --prefix=/usr && make -j
wget -c http://snapshot.debian.org/archive/debian/20211216T150239Z/pool/main/f/fakechroot/fakechroot_2.20.1%2Bds-2_all.deb
wget -c http://snapshot.debian.org/archive/debian/20211216T150239Z/pool/main/f/fakechroot/libfakechroot_2.20.1%2Bds-2_amd64.deb
mkdir -p /install/bin /install/lib /install/lib64 /install/dev /install/usr/lib
ln -s ../lib/ld.so /install/lib64/ld-linux-x86-64.so.2
ln -s ../../lib64 /install/usr/lib/x86_64-linux-gnu
ln -s ../bin /install/usr/bin
cp /bin/dash /install/bin/sh
cp ./elf/ldconfig /install/bin/
cp /usr/bin/seq /usr/bin/env /bin/bash /usr/bin/tr /usr/bin/basename /usr/bin/getopt /usr/sbin/chroot /bin/echo /install/bin/
cp -a /lib/x86_64-linux-gnu/libtinfo.so.6.2 /install/lib64
ln -s libtinfo.so.6.2 /install/lib64/libtinfo.so.6
cp ./elf/ld.so /install/lib
find -name '*.so' -or -name '*.so.*' | xargs -I'{}' cp '{}' /install/lib64
dpkg-deb --fsys-tarfile fakechroot_2.20.1+ds-2_all.deb | tar -C /install --keep-directory-symlink -x
dpkg-deb --fsys-tarfile libfakechroot_2.20.1+ds-2_amd64.deb | tar -C /install --keep-directory-symlink -x
cp /fakechroot/test/src/test-nss_files_fopen /install/bin/
cp -a /install /chroot
mv /chroot /install/chroot
echo "user:x:1337:1337:user:/home/user:/bin/bash" > /install/chroot/etc/passwd
chroot /install fakechroot --lib /usr/lib/x86_64-linux-gnu/fakechroot/libfakechroot.so /bin/chroot /chroot /bin/test-nss_files_fopen user

--- End Message ---
--- Begin Message ---
Source: fakechroot
Source-Version: 2.20.1+ds-6
Done: Johannes Schauer Marin Rodrigues <josch@debian.org>

We believe that the bug you reported is fixed in the latest version of
fakechroot, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1017590@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Johannes Schauer Marin Rodrigues <josch@debian.org> (supplier of updated fakechroot package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 25 Aug 2022 13:59:58 +0200
Source: fakechroot
Architecture: source
Version: 2.20.1+ds-6
Distribution: unstable
Urgency: medium
Maintainer: Johannes Schauer Marin Rodrigues <josch@debian.org>
Changed-By: Johannes Schauer Marin Rodrigues <josch@debian.org>
Closes: 1017590
Changes:
 fakechroot (2.20.1+ds-6) unstable; urgency=medium
 .
   * mmdebstrap autopkgtest succeeds on salsa and debi, so getpwent and friends
     work correctly again (closes: #1017590)
Checksums-Sha1:
 53b4c9d7dcf2eca5d97d4b927183f52aba89dba3 2224 fakechroot_2.20.1+ds-6.dsc
 34df27a4f01683844c4166f1311a7b9ab368c092 18260 fakechroot_2.20.1+ds-6.debian.tar.xz
Checksums-Sha256:
 677cc4756c39712984cd70ee8aee6becfb30805ff9057fc6447dc36db2e6752a 2224 fakechroot_2.20.1+ds-6.dsc
 c0889c88186687c6edc1f3eb8c24bb3feefeb076f6ab0d4564eacd5b71ed945e 18260 fakechroot_2.20.1+ds-6.debian.tar.xz
Files:
 066120f5d262a114310dcbae1060427d 2224 utils optional fakechroot_2.20.1+ds-6.dsc
 7d5036215e7ba434fdf4fc3bce9a49c8 18260 utils optional fakechroot_2.20.1+ds-6.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmMHZGIACgkQ8sulx4+9
g+GJSQ//RuT6qr5v0w58lrL1/Fg5i6/glt1/rMDxINuaO6gL9Re0u62hPPBsFM9Q
OOLffuYcYyDZocMMyr8MyCU1/DGaXXETCzpsm3KzwlhTnCW7htB7sMptbcKHtwV4
jLBqp/f8c7dT54iwTa7nqUj6YQD98nNtLWGZpJX6nPBXvvHOCZf5zocgDDMKK4pl
wfPCgVDcQLqRqfbWluLk67HD35ugfU5al9uQWthZz1Z0Az75r51VJCWXJJ+Hxni6
md9nDEtQPA+JjtXMFDsPrZ0YoQMFtWoRVOtODwB6N7iYWQ/2HyOmclOIP/A/N5Mt
Zf4FpQDcqmg0iDQbSAeW7bgP/Il4xJb/XlPENyVQbFLg4MhV60czoP5S49Osb28f
6EYBvpxiG2HZaxRKZa0UFi+h2PHyiIR7bQxE0UuoyF1ATbt43EhkRSEQ1d7OAkYi
3EkESSea5sZeuMv8javQs4MNpWTmOg6fdeIPhqKe7+DYOoiMvmHqTvnu1OwIXzXU
6Wx+3Pa5TCSus+a9dYlwIbJoGAb31BaG0LPA5kfzEAH0sbRZ/r4cGgo2da9zrMic
fCX3MwQ9aXAZ+xoQxfVp+LsKb4Bf0V+nVkF84CKsvfxW1JV8hA9YUkTv3YQUKtVo
sN9EyMPXdYBVPcD7KKot29Lht+aCN9WBHhHuQbSXjgFVP0tdlWE=
=gEs0
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: