Control: severity -1 minor
Control: tag -1 + upstream confirmed
Control: reassign -1 qemu-user
Control: retitle -1 qemu-user: tty_nr field (7) in /proc/self/stat is not emulated

On Mon, 11 Aug 2025 12:46:53 +0300 Michael Tokarev <[email protected]> wrote:
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
Since this is a very niche thing which doesn't affect a lot of
software (and even this bug report is questionable now, - it looks
like this particular aspect has been fixed in sudo already), and
since this is actually a confirmed upstream issue, let's adjust
the bug report metadata.

Other fields in /proc/self/stat are also not emulated, and this also
causes no big harm.

Also, the package is qemu-user now.

Thanks,

/mjt

Reply via email to