Re: Using devices in Containers (was: [lxc-devel] device namespaces)

2014-09-24 Thread Riya Khanna
On Sep 24, 2014, at 12:43 PM, Eric W. Biederman wrote: > Serge Hallyn writes: > >> Isolation is provided by the devices cgroup. You want something more >> than isolation. >> >> Quoting riya khanna (riyakhanna1...@gmail.com): >>> My use case for having device namespaces is device isolation.

Re: [lxc-devel] device namespaces

2014-09-24 Thread Riya Khanna
I guess policy-based multiplexing (or exclusive ownership) is the usage. What kind of devices (loop, fb, etc.) this is needed for depends on the usage. If there are multiple FBs, then each container could potentially own one. One may want to provide exclusive ownership of input devices to one

Using devices in Containers (was: [lxc-devel] device namespaces)

2014-09-24 Thread Eric W. Biederman
Serge Hallyn writes: > Isolation is provided by the devices cgroup. You want something more > than isolation. > > Quoting riya khanna (riyakhanna1...@gmail.com): >> My use case for having device namespaces is device isolation. Isn't what >> namespaces are there for (as I understand)?

Re: [lxc-devel] device namespaces

2014-09-24 Thread Serge Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > riya khanna writes: > > > (Please pardon multiple emails, artifact of merging all separate > > conversations) > > > > Thanks for your feedback! > > > > Letting the kernel know about what devices a container could access (based > > on > >

Re: [lxc-devel] device namespaces

2014-09-24 Thread Serge Hallyn
Isolation is provided by the devices cgroup. You want something more than isolation. Quoting riya khanna (riyakhanna1...@gmail.com): > My use case for having device namespaces is device isolation. Isn't what > namespaces are there for (as I understand)? Not everything should be > accessible (or

Re: [lxc-devel] device namespaces

2014-09-24 Thread Serge Hallyn
Isolation is provided by the devices cgroup. You want something more than isolation. Quoting riya khanna (riyakhanna1...@gmail.com): My use case for having device namespaces is device isolation. Isn't what namespaces are there for (as I understand)? Not everything should be accessible (or

Re: [lxc-devel] device namespaces

2014-09-24 Thread Serge Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): riya khanna riyakhanna1...@gmail.com writes: (Please pardon multiple emails, artifact of merging all separate conversations) Thanks for your feedback! Letting the kernel know about what devices a container could access (based

Using devices in Containers (was: [lxc-devel] device namespaces)

2014-09-24 Thread Eric W. Biederman
Serge Hallyn serge.hal...@ubuntu.com writes: Isolation is provided by the devices cgroup. You want something more than isolation. Quoting riya khanna (riyakhanna1...@gmail.com): My use case for having device namespaces is device isolation. Isn't what namespaces are there for (as I

Re: [lxc-devel] device namespaces

2014-09-24 Thread Riya Khanna
I guess policy-based multiplexing (or exclusive ownership) is the usage. What kind of devices (loop, fb, etc.) this is needed for depends on the usage. If there are multiple FBs, then each container could potentially own one. One may want to provide exclusive ownership of input devices to one

Re: Using devices in Containers (was: [lxc-devel] device namespaces)

2014-09-24 Thread Riya Khanna
On Sep 24, 2014, at 12:43 PM, Eric W. Biederman ebied...@xmission.com wrote: Serge Hallyn serge.hal...@ubuntu.com writes: Isolation is provided by the devices cgroup. You want something more than isolation. Quoting riya khanna (riyakhanna1...@gmail.com): My use case for having device

Re: [lxc-devel] device namespaces

2014-09-23 Thread Eric W. Biederman
riya khanna writes: > (Please pardon multiple emails, artifact of merging all separate > conversations) > > Thanks for your feedback! > > Letting the kernel know about what devices a container could access (based on > device cgroups) and having devtmpfs in the kernel create device nodes for a

Re: [lxc-devel] device namespaces

2014-09-23 Thread Eric W. Biederman
riya khanna riyakhanna1...@gmail.com writes: (Please pardon multiple emails, artifact of merging all separate conversations) Thanks for your feedback! Letting the kernel know about what devices a container could access (based on device cgroups) and having devtmpfs in the kernel create