public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: ebiederm@xmission•com (Eric W. Biederman)
To: yao zhao <yao.development@gmail•com>
Cc: netdev@vger•kernel.org
Subject: Re: setns question
Date: Fri, 16 Mar 2012 16:36:40 -0700	[thread overview]
Message-ID: <m1aa3g86ev.fsf@fess.ebiederm.org> (raw)
In-Reply-To: <CADDf=MSHZUeq8V9jx9ybofCu9m=_L2vYaNRhFEd9EL0AVi5O4w@mail.gmail.com> (yao zhao's message of "Thu, 15 Mar 2012 09:50:36 -0400")

yao zhao <yao.development@gmail•com> writes:

> Hi Eric,
>
> Can I ask some questions about setns?
>
> 1.setns is complete > 3.0 but right now it doesn't support mnt and pid
> yet.

Correct.  I need to find some time and get those patches merged.

> 2.setns can set a process' uts, net, ipc to different namespace, 

Yes.
> it is not fd based, right?
The argument to setns is a fd.

> 3.is this supported:
>      ProcessA's uts == ProcessB's uts
>      ProcessA's ipc == ProcessC's ipc
>      ProcessA's net == ProcessD's net

Yes.  Even without setns that is supported.

I suggest if you want more details you read the code.

Eric

  reply	other threads:[~2012-03-16 23:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-15 13:50 setns question yao zhao
2012-03-16 23:36 ` Eric W. Biederman [this message]
2012-03-18  2:16   ` yao zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1aa3g86ev.fsf@fess.ebiederm.org \
    --to=ebiederm@xmission$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=yao.development@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox