Re: kernel creating /dev/pts/XX

Richard Gooch (rgooch@atnf.CSIRO.AU)
Fri, 16 Jan 1998 16:15:40 +1100


C. Scott Ananian writes:
> On Thu, 15 Jan 1998 Roger Espel Llima <espel@llaic.u-clermont1.fr> wrote:
>
> > > I would normally propose having a daemon do these things, but since it
> > > is so simple, we might as well do it right in the kernel.
> >
> > I'm with you on that one. The generic cry of "do it in userspace" is
> > good as a general rule, but here it makes it a lot more complicated for
> > nothing. A daemon, whether it runs all the time or not, takes a lot
> > more resources than the little kernel code needed for this.
>
> I disagree. I don't like the kernel playing with magic files. Someone
> else will have to implement this if they want it.

I agree. The kernel should not create files on discs unless
explicitely asked to do so via the open(2)/mkdir(2)/mknod(2)
family. Nor should it fiddle the permissions of stuff on disc unless
explicitely asked to do so.
It may be easy to do, but it's really unclean, IMO.

Regards,

Richard....