Re: [lxc-devel] [PATCH] Add option to lxc-attach to select specific namespaces

2012-05-18 Thread Christian Seiler
>> +int flags[] = { CLONE_NEWPID, CLONE_NEWNS, CLONE_NEWNET, CLONE_NEWIPC, >> CLONE_NEWUTS }; > ... >> -static char *namespaces_list[] = { >> -"MOUNT", "PID", "UTSNAME", "IPC", >> -"USER", "NETWORK" >> -}; >> -static int cloneflags_list[] = { >> -CLONE_NEWNS, CLONE_NEWPID, CLONE_NE

Re: [lxc-devel] [PATCH] Add option to lxc-attach to select specific namespaces

2012-05-18 Thread Serge Hallyn
Quoting Christian Seiler (christ...@iwakd.de): > This patch adds the -s/--namespaces option to lxc-attach that works > analogously to lxc-unshare, allowing the user to select the namespaces the > process should be attached to. > > Signed-off-by: Christian Seiler Other than the comments in the pr

Re: [lxc-devel] [PATCH] Add option to lxc-attach to select specific namespaces

2012-05-18 Thread Serge Hallyn
Quoting Christian Seiler (christ...@iwakd.de): > + int flags[] = { CLONE_NEWPID, CLONE_NEWNS, CLONE_NEWNET, CLONE_NEWIPC, > CLONE_NEWUTS }; ... > -static char *namespaces_list[] = { > - "MOUNT", "PID", "UTSNAME", "IPC", > - "USER", "NETWORK" > -}; > -static int cloneflags_list[] = { >

[lxc-devel] [PATCH] Add option to lxc-attach to select specific namespaces

2012-05-18 Thread Christian Seiler
This patch adds the -s/--namespaces option to lxc-attach that works analogously to lxc-unshare, allowing the user to select the namespaces the process should be attached to. Signed-off-by: Christian Seiler Cc: Stéphane Graber Cc: Daniel Lezcano Cc: Serge Hallyn --- doc/lxc-attach.sgml.in |