[lxc-devel] [lxc/lxc] 048493: hooks: drop namespace references before post-stop

Stéphane Graber noreply at github.com
Mon Mar 11 00:52:37 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 048493a30739347f1e1256fa03fda2d913cd43c9
      https://github.com/lxc/lxc/commit/048493a30739347f1e1256fa03fda2d913cd43c9
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2019-03-10 (Sun, 10 Mar 2019)

  Changed paths:
    M src/lxc/start.c

  Log Message:
  -----------
  hooks: drop namespace references before post-stop

Callers such as LXD run post-stop hooks to perform cleanup operations on
shutdown. This can involve umount and other things. To avoid surprises with
lingering namespace references we should close all our namespace-preserving
file descriptors. We don't need them at this point anymore anyway.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 7f240f4756e2b6b982e73f905e2adbcb13961032
      https://github.com/lxc/lxc/commit/7f240f4756e2b6b982e73f905e2adbcb13961032
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2019-03-10 (Sun, 10 Mar 2019)

  Changed paths:
    M src/lxc/start.c

  Log Message:
  -----------
  Merge pull request #2898 from brauner/2019-03-10/fix_post_stop_hooks

hooks: drop namespace references before post-stop


Compare: https://github.com/lxc/lxc/compare/75df77797b30...7f240f4756e2


More information about the lxc-devel mailing list