* setns question
@ 2012-03-15 13:50 yao zhao
2012-03-16 23:36 ` Eric W. Biederman
0 siblings, 1 reply; 3+ messages in thread
From: yao zhao @ 2012-03-15 13:50 UTC (permalink / raw)
To: netdev, ebiederm
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.
2.setns can set a process' uts, net, ipc to different namespace, it is
not fd based, right?
3.is this supported:
ProcessA's uts == ProcessB's uts
ProcessA's ipc == ProcessC's ipc
ProcessA's net == ProcessD's net
thanks,
yao
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: setns question
2012-03-15 13:50 setns question yao zhao
@ 2012-03-16 23:36 ` Eric W. Biederman
2012-03-18 2:16 ` yao zhao
0 siblings, 1 reply; 3+ messages in thread
From: Eric W. Biederman @ 2012-03-16 23:36 UTC (permalink / raw)
To: yao zhao; +Cc: netdev
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: setns question
2012-03-16 23:36 ` Eric W. Biederman
@ 2012-03-18 2:16 ` yao zhao
0 siblings, 0 replies; 3+ messages in thread
From: yao zhao @ 2012-03-18 2:16 UTC (permalink / raw)
To: Eric W. Biederman; +Cc: netdev
On Fri, Mar 16, 2012 at 7:36 PM, Eric W. Biederman
<ebiederm@xmission.com> wrote:
> 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.
>
Thanks Eric for your reply!
After 1 day source code reading I understood how network namespace is
implemented. It is excellent and it does what I need.
yao
> Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-18 2:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-15 13:50 setns question yao zhao
2012-03-16 23:36 ` Eric W. Biederman
2012-03-18 2:16 ` yao zhao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).