RE: [RFC]Pid conversion between pid namespace

2014-07-21 Thread chenhanx...@cn.fujitsu.com
Hi, > -Original Message- > From: Serge Hallyn [mailto:serge.hal...@ubuntu.com] > Sent: Tuesday, July 15, 2014 12:16 PM > To: Chen, Hanxiao/陈 晗霄 > Subject: Re: [RFC]Pid conversion between pid namespace > > A-2) syscall pid_t getnspid(pid_t query_pid, pid_t observer_pid) > > pros: >

RE: [Resend][PATCH] ns,proc: introduce pid_in_ns

2014-05-13 Thread chenhanx...@cn.fujitsu.com
> -Original Message- > From: Eric W. Biederman [mailto:ebied...@xmission.com] > Sent: Saturday, April 26, 2014 3:18 AM > To: Oleg Nesterov > Cc: Chen, Hanxiao/陈 晗霄; contain...@lists.linux-foundation.org; > linux-kernel@vger.kernel.org; Andrew Morton; Serge Hallyn; Daniel P. Berrange; > Al

RE: [PATCH] ns: introduce getnspid syscall

2014-06-18 Thread chenhanx...@cn.fujitsu.com
Hi, > -Original Message- > From: Eric W. Biederman [mailto:ebied...@xmission.com] > Sent: Wednesday, June 18, 2014 9:31 AM > To: Chen, Hanxiao/陈 晗霄 > Cc: contain...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; > Andrew Morton; Serge Hallyn; Daniel P. Berrange; Oleg Nesterov; A

RE: [PATCH] ns: introduce getnspid syscall

2014-06-20 Thread chenhanx...@cn.fujitsu.com
> -Original Message- > From: Oleg Nesterov [mailto:o...@redhat.com] > Sent: Thursday, June 19, 2014 1:58 AM > To: Chen, Hanxiao/陈 晗霄 > Cc: contain...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; > Andrew Morton; Eric W. Biederman; Serge Hallyn; Daniel P. Berrange; Al Viro; >

RE: [RFC]Pid conversion between pid namespace

2014-07-25 Thread chenhanx...@cn.fujitsu.com
y welcomed! Thanks, - Chen > -Original Message- > From: containers-boun...@lists.linux-foundation.org > [mailto:containers-boun...@lists.linux-foundation.org] On Behalf Of > chenhanx...@cn.fujitsu.com > Sent: Wednesday, July 09, 2014 6:34 PM > To: Eric W. Biederman (ebie

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-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

[RFC]Pid conversion between pid namespace

2014-07-03 Thread chenhanx...@cn.fujitsu.com
Hi, We had some discussions on how to carry out pid conversion between pid namespace via: syscall[1] and procfs[2]. Pavel suggested that a syscall like (ID, NS1, NS2) into (ID). Serge suggested that a syscall pid_t getnspid(pid_t query_pid, pid_t observer_pid). Eric and Richard suggested a pr

RE: [PATCH v2] ns: introduce getnspid syscall

2014-06-26 Thread chenhanx...@cn.fujitsu.com
> -Original Message- > From: Serge Hallyn [mailto:serge.hal...@ubuntu.com] > Sent: Wednesday, June 25, 2014 10:39 PM > To: Chen, Hanxiao/陈 晗霄 > Cc: Serge E. Hallyn; Eric W. Biederman; Richard Weinberger; > contain...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; Oleg > Nestero

RE: [RFC]Pid conversion between pid namespace

2014-07-09 Thread chenhanx...@cn.fujitsu.com
Hi, Let me summarize our discussions of ID conversion by pros/cons: A) make new system call for translation A-1) systemcall(ID, NS1, NS2) into (ID). pros: - has a reference ns(NS2) We could get any lower level ID directly. cons: - lack of

RE: [PATCH] /proc/pid/status: show all sets of pid according to ns

2014-05-27 Thread chenhanx...@cn.fujitsu.com
> -Original Message- > From: Richard Weinberger [mailto:richard.weinber...@gmail.com] > Sent: Monday, May 26, 2014 7:10 PM > To: Chen, Hanxiao/陈 晗霄 > Cc: Linux Containers; LKML; Andrew Morton; Eric W. Biederman; Serge Hallyn; > Daniel P. Berrange; Oleg Nesterov; Al Viro; David Howells > S

RE: [PATCH] /proc/pid/status: show all sets of pid according to ns

2014-05-27 Thread chenhanx...@cn.fujitsu.com
Hi Vasily, > -Original Message- > From: Vasily Kulikov [mailto:sego...@gmail.com] > Sent: Tuesday, May 27, 2014 2:05 AM > To: Chen, Hanxiao/陈 晗霄 > Cc: contain...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; Serge > Hallyn; Oleg Nesterov; David Howells; Eric W. Biederman; Andre

RE: [PATCH v2] /proc/pid/status: show all sets of pid according to ns

2014-05-29 Thread chenhanx...@cn.fujitsu.com
> -Original Message- > From: containers-boun...@lists.linux-foundation.org > On 05/29/2014 09:59 AM, Vasily Kulikov wrote: > > On Wed, May 28, 2014 at 23:27 +0400, Pavel Emelyanov wrote: > >> On 05/28/2014 10:28 PM, Vasily Kulikov wrote: > >>> On Wed, May 28, 2014 at 16:44 +0400, Pavel Em

RE: [PATCH] ns: introduce getnspid syscall

2014-06-18 Thread chenhanx...@cn.fujitsu.com
> -Original Message- > From: Pavel Emelyanov [mailto:xe...@parallels.com] > Sent: Tuesday, June 17, 2014 8:13 PM > To: Chen, Hanxiao/陈 晗霄 > Cc: contain...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; > Andrew Morton; Eric W. Biederman; Serge Hallyn; Daniel P. Berrange; Oleg

RE: [PATCH] ns: introduce getnspid syscall

2014-06-18 Thread chenhanx...@cn.fujitsu.com
> -Original Message- > From: mtk.linux.li...@gmail.com [mailto:mtk.linux.li...@gmail.com] On Behalf > Of > Michael Kerrisk > Sent: Wednesday, June 18, 2014 2:27 AM > To: Chen, Hanxiao/陈 晗霄 > Cc: containers; Linux Kernel; Richard Weinberger; Serge Hallyn; Oleg Nesterov; > David Howells; E

RE: [PATCH v2] ns: introduce getnspid syscall

2014-06-23 Thread chenhanx...@cn.fujitsu.com
Hi > -Original Message- > From: Richard Weinberger [mailto:rich...@nod.at] > Sent: Friday, June 20, 2014 7:02 PM > To: Chen, Hanxiao/陈 晗霄; contain...@lists.linux-foundation.org; > linux-kernel@vger.kernel.org > Cc: Eric W. Biederman; Serge Hallyn; Daniel P. Berrange; Oleg Nesterov; Al > V

RE: [PATCH v2] ns: introduce getnspid syscall

2014-06-25 Thread chenhanx...@cn.fujitsu.com
Hi, > -Original Message- > From: Serge E. Hallyn [mailto:se...@hallyn.com] > Sent: Monday, June 23, 2014 9:33 PM > To: Chen, Hanxiao/陈 晗霄 > Cc: Richard Weinberger; contain...@lists.linux-foundation.org; > linux-kernel@vger.kernel.org; Pavel Emelyanov; linux-...@vger.kernel.org; > Serge Hal

RE: [PATCH] cgroup: fix a typo in Documentation/cgroups/cgroups.txt

2014-06-25 Thread chenhanx...@cn.fujitsu.com
> -Original Message- > From: Li Zefan [mailto:lize...@huawei.com] > Sent: Wednesday, June 25, 2014 11:44 AM > On 2014/6/25 11:30, Chen Hanxiao wrote: > > s/iff/if > > > > This is not a typo. iff == if and only if. > I see. Thanks for teaching. - Chen

RE: [RFC]Pid conversion between pid namespace

2014-08-29 Thread chenhanx...@cn.fujitsu.com
> -Original Message- > From: Serge E. Hallyn [mailto:se...@hallyn.com] > Sent: Thursday, August 28, 2014 9:50 PM > To: Chen, Hanxiao/陈 晗霄 > Cc: Serge Hallyn; Richard Weinberger (rich...@nod.at); [snip] > > > I like your proc approach. Do you have an implementation? > > > > Thanks for yo

RE: [RFC]Pid conversion between pid namespace

2014-08-07 Thread chenhanx...@cn.fujitsu.com
Hi, > -Original Message- > From: Serge Hallyn [mailto:serge.hal...@ubuntu.com] > Sent: Tuesday, August 05, 2014 6:21 AM > > Quoting chenhanx...@cn.fujitsu.com (chenhanx...@cn.fujitsu.com): > > Hi, > > > > We discussed two ways of pid conversion: > &

RE: [RFC]Pid conversion between pid namespace

2014-08-08 Thread chenhanx...@cn.fujitsu.com
> -Original Message- > From: Serge Hallyn [mailto:serge.hal...@ubuntu.com] > Sent: Friday, August 08, 2014 12:12 AM > To: Chen, Hanxiao/陈 晗霄 > > > How much more kernel space does this take up? > > > > > > > Only first process when creating new ns will be add here. > > So there would not