Re: [PATCH 0/1] devpts: use dynamic_dname() to generate proc name

From: Linus Torvalds
Date: Thu Aug 24 2017 - 17:07:59 EST


On Thu, Aug 24, 2017 at 1:43 PM, Eric W. Biederman
<ebiederm@xxxxxxxxxxxx> wrote:
>
> There are just enough weird one off scripts like xen image builder (I
> think that was the nasty test case that broke in debian) that I can't
> imagine ever being able to responsibly remove the path based lookups in
> /dev/ptmx. I do dream of it sometimes.

Not going to happen.

The fact is, /dev/ptmx is the simply the standard location.
/dev/pts/ptmx simply is *not*.

So pretty much every single user that ever uses pty's will use
/dev/ptmx, it's just how it has always worked.

Trying to change it to anything else is just stupid. There's no
upside, there is only downsides - mainly the "we'll have to support
the standard way anyway, that newfangled way doesn't add anything".

Our "pts" lookup isn't expensive.

So quite frankly, we should discourage people from using the
non-standard place. It really has no real advantages, and it's simply
not worth it.

Linus