Control: found -1 1:10.0.0+ds-1

On Tue, 17 Sep 2019 00:33:26 +0200 Thorsten Glaser <[email protected]> wrote:
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
I dunno if sudo still relies on this field (field #7, tty_nr)
of /proc/self/stat to do its work.  But qemu, as of version
10.0 and 10.1, still doesn't provide it.  See
https://gitlab.com/qemu-project/qemu/-/blob/stable-10.0/linux-user/syscall.c?ref_type=heads#L8218

FWIW.

Thanks,

/mjt

Reply via email to