[lxc-devel] [lxc/lxc] dac862: attach: setns instead of unshare in lxc-attach

GitHub noreply at github.com
Thu Jul 28 11:23:58 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: dac862c0152cfc06c44a99fce6e356e4e7f467ae
      https://github.com/lxc/lxc/commit/dac862c0152cfc06c44a99fce6e356e4e7f467ae
  Author: oc <chenhaiq at yunify.com>
  Date:   2016-07-28 (Thu, 28 Jul 2016)

  Changed paths:
    M src/lxc/attach.c

  Log Message:
  -----------
  attach: setns instead of unshare in lxc-attach

lxc-checkpoint will fail because process createdy by lxc-attach has
incorrect cgroup ns. It needs to use "setns" instead of "unshare"
to set cgroup ns.

Signed-off-by: Chen Haiquan <oc at yunify.com>


  Commit: 11b09c7afffe81a2030777a863700f0fae1307a3
      https://github.com/lxc/lxc/commit/11b09c7afffe81a2030777a863700f0fae1307a3
  Author: Christian Brauner <cbrauner at suse.de>
  Date:   2016-07-28 (Thu, 28 Jul 2016)

  Changed paths:
    M src/lxc/attach.c

  Log Message:
  -----------
  Merge pull request #1102 from chenhaiq/master

attach: use setns instead of unshare


Compare: https://github.com/lxc/lxc/compare/42cbf5e24679...11b09c7afffe


More information about the lxc-devel mailing list