>> +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
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
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[] = {
>
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 |