[Devel] [RFC][PATCH] ns: Syscalls for better namespace sharing control.

Daniel Lezcano daniel.lezcano at free.fr
Thu May 27 05:44:40 PDT 2010


On 05/27/2010 02:28 PM, Enrico Weigelt wrote:
> * Eric W. Biederman<ebiederm at xmission.com>  wrote:
>
> Hi,
>
>    
>> The nsfd() system call returns a file descriptor that can
>> be used to talk about a specific namespace, and to keep
>> the specified namespace alive.
>>      
> Why not directly mapping it into the filesystem (eg. /proc)
> instead of yet another syscall ?
>    

I think it is already done, the last version maps 
/proc/<pid>/ns/[net,pid,...].
You have to open one of these files and use the 'setns' syscall.

Thanks
   -- Daniel
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list