Re: glibc [BZ #22145]: {p,ty}fds and mount namespaces

2017-10-10 Thread Christian Brauner
On Tue, Oct 10, 2017 at 5:44 PM, Chet Ramey wrote: > On 10/9/17 10:37 AM, Christian Brauner wrote: > >> A common scenario where this happens is with /dev/console in containers. >> Usually container runtimes/managers will call openpty() on a ptmx device in >> the >

glibc [BZ #22145]: {p,ty}fds and mount namespaces

2017-10-09 Thread Christian Brauner
Hi, We've received a bug report against glibc [1] relating to {p,t}ty file descriptors from devpts mounts in different mount namespaces. In case ttyname{_r}() detects that the path for a pty slave file descriptor (e.g. /dev/pts/4) does not exist in the caller's mount namespace or the path exists