]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/attach.c
attach: handle namespace inheritance
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 1 Nov 2017 09:44:18 +0000 (10:44 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 6 Nov 2017 23:54:04 +0000 (00:54 +0100)
commit877f3a0452b0455e727142024c1d617e61974c45
tree9c0498da554fafdb9ef86e06b45fd2d17ef6334b
parentda3dcce69a95cc6a7e4a3ba4e0adbc6c9220ff35
attach: handle namespace inheritance

We need to have lxc_attach() distinguish between a caller specifying specific
namespaces to attach to and a caller not requesting specific namespaces. The
latter is taken by lxc_attach() to mean that all namespaces will be attached.
This also needs to include all inherited namespaces.

Closes #1890.
Closes #1897.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c
src/lxc/attach.h