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

From: Shaya Potter (spotter@cs.columbia.edu)
Date: Fri Jul 19 2002 - 11:35:19 EST


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/



This archive was generated by hypermail 2b29 : Tue Jul 23 2002 - 22:00:30 EST