Bug#940533: qemu-user-static: MasterCard in /proc/self/stat emulation causes sudo(8) to fail

2021-02-25 Thread Thorsten Glaser
Marc Haber dixit: >> whereas sudo reads the >> tty from it, making it fail in chroots using qemu-user-static. > >How exactly does sudo fail? Is this worth reporting upstream? Basically sudo does not ask for the password because it cannot find its tty. I’ve mailed to the bugreport with you in X-De

Bug#940533: qemu-user-static: MasterCard in /proc/self/stat emulation causes sudo(8) to fail

2021-02-25 Thread Thorsten Glaser
Package: qemu Version: 1:5.2+dfsg-6 Followup-For: Bug #940533 X-Debbugs-Cc: t...@mirbsd.de, Marc Haber This bug is still pertinent. I’ve reproduced it locally right now as: # mount an RPi Debian buster image (pristine Debian/arm64, not Raspian) $ sudo losetup /dev/loop3 ~/tmp/rpi.img $ sudo kpa

Bug#940533: qemu-user-static: MasterCard in /proc/self/stat emulation causes sudo(8) to fail

2021-02-24 Thread Marc Haber
Hi Thorsten, On Tue, Sep 17, 2019 at 12:33:26AM +0200, Thorsten Glaser wrote: > linux-user/syscall.c:open_self_stat() fills the emulated > /proc/self/stat with a lot of 0s, So the contents of /proc/self/stat has the correct number of fields, but all zeroes? > whereas sudo reads the > tty from it

Bug#940533: qemu-user-static: MasterCard in /proc/self/stat emulation causes sudo(8) to fail

2019-09-16 Thread Thorsten Glaser
On Tue, 17 Sep 2019, Thorsten Glaser wrote: > linux-user/syscall.c:open_self_stat() fills the emulated > /proc/self/stat with a lot of 0s, whereas sudo reads the > tty from it, making it fail in chroots using qemu-user-static. The weird thing is that /proc/$$/stat a.k.a. $(readlink /proc/self)/st

Bug#940533: qemu-user-static: MasterCard in /proc/self/stat emulation causes sudo(8) to fail

2019-09-16 Thread Thorsten Glaser
Package: qemu-user-static Version: 1:4.1-1+b1 Severity: important linux-user/syscall.c:open_self_stat() fills the emulated /proc/self/stat with a lot of 0s, whereas sudo reads the tty from it, making it fail in chroots using qemu-user-static. Workaround: use sudo -S -- System Information: Debian