[lxc-devel] [lxc/lxc] 8f3e28: conf: non-functional changes

GitHub noreply at github.com
Sat Nov 26 04:50:28 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 8f3e280e77fc55dfb41c47b8c3672b11bd3336cc
      https://github.com/lxc/lxc/commit/8f3e280e77fc55dfb41c47b8c3672b11bd3336cc
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2016-11-26 (Sat, 26 Nov 2016)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: non-functional changes

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


  Commit: 413c294f756684cb683f78fc317c9c5c0953de18
      https://github.com/lxc/lxc/commit/413c294f756684cb683f78fc317c9c5c0953de18
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2016-11-26 (Sat, 26 Nov 2016)

  Changed paths:
    M configure.ac

  Log Message:
  -----------
  configure: check for memfd_create()

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


  Commit: 5ef5c9a34460a8bd7c562b72bc977b2e7ac47cc8
      https://github.com/lxc/lxc/commit/5ef5c9a34460a8bd7c562b72bc977b2e7ac47cc8
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2016-11-26 (Sat, 26 Nov 2016)

  Changed paths:
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/criu.c

  Log Message:
  -----------
  conf, criu: add make_anonymous_mount_file()

Before we used tmpfile() to write out mount entries for the container. This
requires a writeable /tmp file system which can be a problem for systems where
this filesystem is not present. This commit switches from tmpfile() to using
the memfd_create() syscall. It allows us to create an anonymous tmpfs file (And
is somewhat similar to mmap().) which is automatically deleted as soon as any
references to it are dropped. In case we detect that syscall is not
implemented, we fallback to using tmpfile().

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


  Commit: d53d0a01a9164d08c5d29c35db01032cfbd910bb
      https://github.com/lxc/lxc/commit/d53d0a01a9164d08c5d29c35db01032cfbd910bb
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2016-11-25 (Fri, 25 Nov 2016)

  Changed paths:
    M configure.ac
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/criu.c

  Log Message:
  -----------
  Merge pull request #1315 from brauner/2016-11-23/memfd_create

conf, criu: add make_anonymous_mount_file()


Compare: https://github.com/lxc/lxc/compare/3f37ede22a58...d53d0a01a916


More information about the lxc-devel mailing list