Re: more thoughts on a new jail() system call

Shaya Potter (spotter@cs.columbia.edu)
19 Jul 2002 12:35:19 -0400


On Thu, 2002-07-18 at 23:06, Albert D. Cahalan wrote:
>
> >> sys_vhangup) NOT SURE - Should be fine, right?
> >
> > Seems ok to me.
>
> Have fun with devpts.

what would happen if a jail had virtualized ttys? i.e. they each had
tty1,2,3,4..... and this was transalted to an open real tty when needed,
and the transalation mapping being kept in the prison struct?

>
> >> sys_getsid) NOT SURE - whats it for?
> >
> > You shouldn't be able to call getsid() on some other
> > process outside the jail. Also, calling getsid() on
> > yourself might reveal information about your parent,
> > like getppid() or getpgid() (minor).
>
> Your parent ought to be 1.

yes.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/