Re: Could not mount sysfs when enable userns but disable netns

2014-07-14 Thread Eric W. Biederman
ntu.com); Greg >> Kroah-Hartman; contain...@lists.linux-foundation.org; >> linux-kernel@vger.kernel.org >> Subject: Re: Could not mount sysfs when enable userns but disable netns >> >> "Serge E. Hallyn" writes: >> >> > Quoting chenhanx...@cn.fujits

RE: Could not mount sysfs when enable userns but disable netns

2014-07-14 Thread chenhanx...@cn.fujitsu.com
rg; > linux-kernel@vger.kernel.org > Subject: Re: Could not mount sysfs when enable userns but disable netns > > "Serge E. Hallyn" writes: > > > Quoting chenhanx...@cn.fujitsu.com (chenhanx...@cn.fujitsu.com): > >> Hello, > >> > >> How to re

RE: Could not mount sysfs when enable userns but disable netns

2014-07-14 Thread chenhanx...@cn.fujitsu.com
@vger.kernel.org Subject: Re: Could not mount sysfs when enable userns but disable netns Serge E. Hallyn se...@hallyn.com writes: Quoting chenhanx...@cn.fujitsu.com (chenhanx...@cn.fujitsu.com): Hello, How to reproduce: 1. Prepare a container, enable userns and disable netns 2. use libvirt-lxc

Re: Could not mount sysfs when enable userns but disable netns

2014-07-14 Thread Eric W. Biederman
; contain...@lists.linux-foundation.org; linux-kernel@vger.kernel.org Subject: Re: Could not mount sysfs when enable userns but disable netns Serge E. Hallyn se...@hallyn.com writes: Quoting chenhanx...@cn.fujitsu.com (chenhanx...@cn.fujitsu.com): Hello, How to reproduce: 1. Prepare

Re: Could not mount sysfs when enable userns but disable netns

2014-07-11 Thread Eric W. Biederman
"Serge E. Hallyn" writes: > Quoting chenhanx...@cn.fujitsu.com (chenhanx...@cn.fujitsu.com): >> Hello, >> >> How to reproduce: >> 1. Prepare a container, enable userns and disable netns >> 2. use libvirt-lxc to start a container >> 3. libvirt could not mount sysfs then failed to start. >> >>

Re: Could not mount sysfs when enable userns but disable netns

2014-07-11 Thread Serge E. Hallyn
Quoting chenhanx...@cn.fujitsu.com (chenhanx...@cn.fujitsu.com): > Hello, > > How to reproduce: > 1. Prepare a container, enable userns and disable netns > 2. use libvirt-lxc to start a container > 3. libvirt could not mount sysfs then failed to start. > > Then I found that > commit

Could not mount sysfs when enable userns but disable netns

2014-07-11 Thread chenhanx...@cn.fujitsu.com
Hello, How to reproduce: 1. Prepare a container, enable userns and disable netns 2. use libvirt-lxc to start a container 3. libvirt could not mount sysfs then failed to start. Then I found that commit 7dc5dbc879bd0779924b5132a48b731a0bc04a1e says: "Don't allow mounting sysfs unless the caller

Could not mount sysfs when enable userns but disable netns

2014-07-11 Thread chenhanx...@cn.fujitsu.com
Hello, How to reproduce: 1. Prepare a container, enable userns and disable netns 2. use libvirt-lxc to start a container 3. libvirt could not mount sysfs then failed to start. Then I found that commit 7dc5dbc879bd0779924b5132a48b731a0bc04a1e says: Don't allow mounting sysfs unless the caller has

Re: Could not mount sysfs when enable userns but disable netns

2014-07-11 Thread Serge E. Hallyn
Quoting chenhanx...@cn.fujitsu.com (chenhanx...@cn.fujitsu.com): Hello, How to reproduce: 1. Prepare a container, enable userns and disable netns 2. use libvirt-lxc to start a container 3. libvirt could not mount sysfs then failed to start. Then I found that commit

Re: Could not mount sysfs when enable userns but disable netns

2014-07-11 Thread Eric W. Biederman
Serge E. Hallyn se...@hallyn.com writes: Quoting chenhanx...@cn.fujitsu.com (chenhanx...@cn.fujitsu.com): Hello, How to reproduce: 1. Prepare a container, enable userns and disable netns 2. use libvirt-lxc to start a container 3. libvirt could not mount sysfs then failed to start. Then