]> 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>
Fri, 15 Dec 2017 12:35:09 +0000 (13:35 +0100)
commitd9ef2141a9a99a9c5cb2f6915541cfa942f8492d
tree8630856873f4c0ab009b13904f5519885c1b0091
parenta477a3686cf265d68f556ccf053a838a7da83cab
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