Re: [PATCH v3] pty: Repair TIOCGPTPEER

2017-08-24 Thread Stefan Lippers-Hollmann
Hi On 2017-08-24, Eric W. Biederman wrote: > The implementation of TIOCGPTPEER has two issues. > > When /dev/ptmx (as opposed to /dev/pts/ptmx) is opened the wrong > vfsmount is passed to dentry_open. Which results in the kernel displaying > the wrong pathname for the peer. [...] > v2: Lots of

[PATCH v3] pty: Repair TIOCGPTPEER

2017-08-24 Thread Eric W. Biederman
The implementation of TIOCGPTPEER has two issues. When /dev/ptmx (as opposed to /dev/pts/ptmx) is opened the wrong vfsmount is passed to dentry_open. Which results in the kernel displaying the wrong pathname for the peer. The second is simply by caching the vfsmount and dentry of the peer it le