[Devel] [PATCH 6/7]: Check for user-space mount of /dev/pts

Alexey Dobriyan adobriyan at sw.ru
Tue Mar 25 02:40:19 PDT 2008


On Tuesday 25 March 2008 07:26:14 sukadev at us.ibm.com wrote:
> From: Sukadev Bhattiprolu <sukadev at us.ibm.com>
> Subject: [PATCH 6/7]: Check for user-space mount of /dev/pts
>
> When the pts namespace is cloned, the /dev/pts is not useful unless it
> is remounted from the user space.
>
> If user-space clones pts namespace but does not remount /dev/pts, it
> would end up using the /dev/pts mount from parent-pts-ns but allocate
> the pts indices from current pts ns.
>
> This patch (hack ?) prevents creation of PTYs in user space unless
> user-space mounts /dev/pts.

This is absolutely horrible and shouldn't go anywhere.




More information about the Devel mailing list