]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxccontainer: only attach netns on netdev detach
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 10 Dec 2017 01:41:14 +0000 (02:41 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 12 Dec 2017 10:54:12 +0000 (11:54 +0100)
commitacbfeda88b86990e2ded18ca4497637fb1b8738d
treed4b298172af090a9a29d2f3e259d425090a5adff
parentb69dfc9fcb4d4350ae065c7c1ac9874f67ba983c
lxccontainer: only attach netns on netdev detach

Detaching network namespaces as an unprivileged user is currently not possible
and attaching to the user namespace will mean we are not allowed to move the
network device into an ancestor network namespace.

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