[Devel] Re: [PATCH 0/9] Multiple devpts instances

2009-02-23 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): Daniel Lezcano daniel.lezc...@free.fr writes: But if I am able to create a new instance of devpts for a container and modify the configuration of another devpts from this container, is it acceptable ? Can we convince people to use

[Devel] Re: [PATCH 0/9] Multiple devpts instances

2009-02-23 Thread H. Peter Anvin
Serge E. Hallyn wrote: If you want security and permission arguments get with Serge and finish the uid namespace. The you will have a user that looks like root but does not have permissions to do most things. Right, and in particular the way it would partially solve this issue is that the

[Devel] Re: [PATCH 0/9] Multiple devpts instances

2009-02-23 Thread Daniel Lezcano
Serge E. Hallyn wrote: Quoting Eric W. Biederman (ebied...@xmission.com): Daniel Lezcano daniel.lezc...@free.fr writes: But if I am able to create a new instance of devpts for a container and modify the configuration of another devpts from this container, is it acceptable ? Can

[Devel] Re: [PATCH 0/9] Multiple devpts instances

2009-02-23 Thread H. Peter Anvin
Daniel Lezcano wrote: Yep, I changed my mind, I think Eric and HPA are right. devpts is a file system and not a namespace even if the result is the same. That makes sense to keep a global sysctl for the root container and handle security problem with user namespace and mount option.

[Devel] Re: [PATCH 0/9] Multiple devpts instances

2009-02-23 Thread Eric W. Biederman
H. Peter Anvin h...@zytor.com writes: Serge E. Hallyn wrote: If you want security and permission arguments get with Serge and finish the uid namespace. The you will have a user that looks like root but does not have permissions to do most things. Right, and in particular the way it would

[Devel] Re: [PATCH 0/9] Multiple devpts instances

2009-02-19 Thread Daniel Lezcano
suka...@linux.vnet.ibm.com wrote: Enable multiple instances of devpts filesystem so each container can allocate ptys independently. Hi suka, It looks like the /proc/sys/kernel/pty/max and nr are not virtualized. Modifying in the container the max pty, that impacts the init_pty. Same as nr

[Devel] Re: [PATCH 0/9] Multiple devpts instances

2009-02-19 Thread H. Peter Anvin
Daniel Lezcano wrote: suka...@linux.vnet.ibm.com wrote: Enable multiple instances of devpts filesystem so each container can allocate ptys independently. Hi suka, It looks like the /proc/sys/kernel/pty/max and nr are not virtualized. Modifying in the container the max pty, that

[Devel] Re: [PATCH 0/9] Multiple devpts instances

2009-02-19 Thread Daniel Lezcano
H. Peter Anvin wrote: Daniel Lezcano wrote: suka...@linux.vnet.ibm.com wrote: Enable multiple instances of devpts filesystem so each container can allocate ptys independently. Hi suka, It looks like the /proc/sys/kernel/pty/max and nr are not virtualized. Modifying

[Devel] Re: [PATCH 0/9] Multiple devpts instances

2009-02-19 Thread H. Peter Anvin
Daniel Lezcano wrote: Resource limit partitioning is a much bigger and orthogonal problem. In this case we don't have the pty allocated independently, no ? I mean one container can allocate 4095 pty, making a pty starvation for others containers. Or imagine I am a vilain and I want to

[Devel] Re: [PATCH 0/9] Multiple devpts instances

2009-02-19 Thread Eric W. Biederman
H. Peter Anvin h...@zytor.com writes: Daniel Lezcano wrote: Resource limit partitioning is a much bigger and orthogonal problem. In this case we don't have the pty allocated independently, no ? I mean one container can allocate 4095 pty, making a pty starvation for others containers.

[Devel] Re: [PATCH 0/9] Multiple devpts instances

2009-02-19 Thread Daniel Lezcano
H. Peter Anvin wrote: Daniel Lezcano wrote: Resource limit partitioning is a much bigger and orthogonal problem. In this case we don't have the pty allocated independently, no ? I mean one container can allocate 4095 pty, making a pty starvation for others containers. Or imagine I am a

[Devel] Re: [PATCH 0/9] Multiple devpts instances

2009-02-19 Thread Eric W. Biederman
Daniel Lezcano daniel.lezc...@free.fr writes: But if I am able to create a new instance of devpts for a container and modify the configuration of another devpts from this container, is it acceptable ? Can we convince people to use the containers for security and have anybody able to make a

[Devel] Re: [PATCH 0/9] Multiple devpts instances

2009-02-19 Thread H. Peter Anvin
Eric W. Biederman wrote: Really. You have the same classes of issues with ANY allocatable resource in the system. Period. Furthermore, there are quite a few applications which want one and not the other. Trying to entangle them is broken. Peter they are entangled issues because the