Re: [PATCH 01/13] devpts: Teach /dev/ptmx to find the associated devpts via path lookup

From: H. Peter Anvin
Date: Mon Apr 11 2016 - 10:59:57 EST


On April 9, 2016 6:27:36 PM PDT, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>On Apr 9, 2016 5:45 PM, "Andy Lutomirski" <luto@xxxxxxxxxxxxxx> wrote:
>>
>>
>> What we *do* want to do, though, is to prevent the following:
>
>I don't see the point. Why do you bring up this insane scenario that
>nobody
>can possibly care about?
>
>So you actually have any reason to believe somebody does that?
>
>I already asked about that earlier, and the silence was deafening.
>
> Linus

Here is an entire different approach, I don't know if it is sane or not: when *mounting* the devpts filesystem, it could automagically create the bins mount for ptmx in the parent of its mount point. Presumably the would be a mount option to disable that behavior.

Does anyone see an obvious problem with that?
--
Sent from my Android device with K-9 Mail. Please excuse brevity and formatting.