Closed sylvestre closed 7 months ago
After some digging, this seems related to the use_pty
behaviour, which is the default for sudo-rs.
If you put Defaults !use_pty
in /etc/sudoers
(in the chroot), sudo-rs
does work as you expect. On the other hand, if you use Defaults use_pty
, you get the same problem with original sudo (although a slightly better error message):
# sudo ls
sudo: unable to allocate pty: No such device
I.e. this seems not really a bug but more an issue of the chroot environment being too limited for both sudo and sudo-rs to safely perform their intended function.
Specifically it appears that /dev/ptmx
is not the proper pseudo terminal multiplexer device that it is supposed to be when using debootstrap, it might be a bug in the way debootstrap sets up the chroot.
with a new chroot, sudo-rs is doing some unexpected thing.