[lxc-devel] [lxc/lxc] 33258b: namespace: support CLONE_PIDFD with lxc_clone()

Stéphane Graber noreply at github.com
Thu May 9 19:20:00 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 33258b95fc1573b68b3dfae7a1d41696293b828d
      https://github.com/lxc/lxc/commit/33258b95fc1573b68b3dfae7a1d41696293b828d
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2019-05-09 (Thu, 09 May 2019)

  Changed paths:
    M src/lxc/conf.c
    M src/lxc/namespace.c
    M src/lxc/namespace.h
    M src/lxc/start.c
    M src/lxc/storage/nbd.c
    M src/lxc/tools/lxc_unshare.c

  Log Message:
  -----------
  namespace: support CLONE_PIDFD with lxc_clone()

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


  Commit: 33942046c58fe0d4fb74e4fe2896b03f2cb26898
      https://github.com/lxc/lxc/commit/33942046c58fe0d4fb74e4fe2896b03f2cb26898
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2019-05-09 (Thu, 09 May 2019)

  Changed paths:
    M src/lxc/start.c
    M src/lxc/start.h

  Log Message:
  -----------
  start: use CLONE_PIDFD

Use CLONE_PIDFD when possible.

Note the clone() syscall ignores unknown flags which is usually a design
mistake. However, for us this bug is a feature since we can just pass the flag
along and see whether the kernel has given us a pidfd.

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


  Commit: 3e860bdac0e8b9cd5e4a06546c85e3fddc7781cf
      https://github.com/lxc/lxc/commit/3e860bdac0e8b9cd5e4a06546c85e3fddc7781cf
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2019-05-09 (Thu, 09 May 2019)

  Changed paths:
    M src/lxc/conf.c
    M src/lxc/namespace.c
    M src/lxc/namespace.h
    M src/lxc/start.c
    M src/lxc/start.h
    M src/lxc/storage/nbd.c
    M src/lxc/tools/lxc_unshare.c

  Log Message:
  -----------
  Merge pull request #2986 from brauner/2019-05-09/clone_pidfd

start: use CLONE_PIDFD


Compare: https://github.com/lxc/lxc/compare/1ab73d38009d...3e860bdac0e8


More information about the lxc-devel mailing list