[lxc-devel] [lxc/lxc] 0037ab: network: move phys netdevs back to monitor's net n...

Christian Brauner noreply at github.com
Wed May 15 15:40:54 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 0037ab49d61e150e2cb5a93b8a0194d4f2687065
      https://github.com/lxc/lxc/commit/0037ab49d61e150e2cb5a93b8a0194d4f2687065
  Author: Thomas Parrott <thomas.parrott at canonical.com>
  Date:   2019-05-15 (Wed, 15 May 2019)

  Changed paths:
    M src/lxc/macro.h
    M src/lxc/network.c

  Log Message:
  -----------
  network: move phys netdevs back to monitor's net ns rather than pid 1's

Updates lxc_restore_phys_nics_to_netns() to move phys netdevs back to the monitor's network namespace rather than the previously hardcoded PID 1 net ns.

This is to fix instances where LXC is started inside a net ns different from PID 1 and physical devices are moved back to a different net ns when the container is shutdown than the net ns than where the container was started from.

Signed-off-by: Thomas Parrott <thomas.parrott at canonical.com>


  Commit: e2f2d86a4199472fd6d7f6484c9c563ddf724a61
      https://github.com/lxc/lxc/commit/e2f2d86a4199472fd6d7f6484c9c563ddf724a61
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2019-05-15 (Wed, 15 May 2019)

  Changed paths:
    M src/lxc/macro.h
    M src/lxc/network.c

  Log Message:
  -----------
  Merge pull request #3005 from tomponline/tp-phys-ns-restore

network: move phys netdevs back to monitor's net ns rather than pid 1's


Compare: https://github.com/lxc/lxc/compare/8f06ff54913a...e2f2d86a4199


More information about the lxc-devel mailing list