With Podman, sudo can be used to run a container in the context of a non-root user (rootless). e.g.
sudo -iu testuser podman run -it busybox echo test
With use_pty enabled, ff the output is piped to another command then it hangs, irresponsive to ctrl+c.
sudo -iu testuser podman run -it busybox echo test | cat
The hanging won't happen if use_pty is disabled or sudo is not used. The deadlock seems to happen with the combination of rootless container and piping. It can be repro'd on Red Hat 8 & 9, the sudo version is 1.9.5p2.
With Podman, sudo can be used to run a container in the context of a non-root user (rootless). e.g.
sudo -iu testuser podman run -it busybox echo test
With use_pty enabled, ff the output is piped to another command then it hangs, irresponsive to ctrl+c.sudo -iu testuser podman run -it busybox echo test | cat
The hanging won't happen if use_pty is disabled or sudo is not used. The deadlock seems to happen with the combination of rootless container and piping. It can be repro'd on Red Hat 8 & 9, the sudo version is 1.9.5p2.