[lxc-devel] [lxc/lxc] 2b0c81: syscalls: add openat2()

St├ęphane Graber noreply at github.com
Mon Aug 10 02:39:59 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 2b0c8106175f35b8347a508f55845a3792e717b8
      https://github.com/lxc/lxc/commit/2b0c8106175f35b8347a508f55845a3792e717b8
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-08-09 (Sun, 09 Aug 2020)

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

  Log Message:
  -----------
  syscalls: add openat2()

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


  Commit: 65f0afdee28f1f867e48ad68cca2ef7e098bc03e
      https://github.com/lxc/lxc/commit/65f0afdee28f1f867e48ad68cca2ef7e098bc03e
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-08-09 (Sun, 09 Aug 2020)

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

  Log Message:
  -----------
  utils: add safe_mount_beneath() based on openat2()

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


  Commit: ee8eeba881274bc4f4cd028255d019a4a41f73f3
      https://github.com/lxc/lxc/commit/ee8eeba881274bc4f4cd028255d019a4a41f73f3
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-08-09 (Sun, 09 Aug 2020)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: switch mount_autodev() to new safe_mount_beneath() helper

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


  Commit: 8b1f4dd9b38810488207a81f1e7dd5515eb5a25c
      https://github.com/lxc/lxc/commit/8b1f4dd9b38810488207a81f1e7dd5515eb5a25c
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-08-09 (Sun, 09 Aug 2020)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c

  Log Message:
  -----------
  cgfsng: use safe_mount_beneath()

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


  Commit: 43535b6d26945581df7216eb85e90142b380d5ad
      https://github.com/lxc/lxc/commit/43535b6d26945581df7216eb85e90142b380d5ad
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-08-09 (Sun, 09 Aug 2020)

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

  Log Message:
  -----------
  utils: introduce safe_mount_beneath_at()

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


  Commit: 31f8b2fd472b049207a262ebdf9528a88abccfac
      https://github.com/lxc/lxc/commit/31f8b2fd472b049207a262ebdf9528a88abccfac
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-08-09 (Sun, 09 Aug 2020)

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

  Log Message:
  -----------
  conf: stash file descriptor to root mountpoint in struct lxc_rootfs

This way we only need to open it _once_ per container startup.

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


  Commit: ae9215cfc06ce5cf940d423606cfdc4c4c91aa52
      https://github.com/lxc/lxc/commit/ae9215cfc06ce5cf940d423606cfdc4c4c91aa52
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-08-09 (Sun, 09 Aug 2020)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: make use of stashed container mountpoint fd in mount_autodev()

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


  Commit: 6f61472beac55a0ba4d01cd36f485dd2297793c5
      https://github.com/lxc/lxc/commit/6f61472beac55a0ba4d01cd36f485dd2297793c5
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-08-09 (Sun, 09 Aug 2020)

  Changed paths:
    M src/lxc/file_utils.c
    M src/lxc/file_utils.h
    M src/lxc/utils.c

  Log Message:
  -----------
  file_utils: add exists_dir_at()

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


  Commit: d43d5191b5d561d96aaf75609bd7d9dd63dd3168
      https://github.com/lxc/lxc/commit/d43d5191b5d561d96aaf75609bd7d9dd63dd3168
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-08-09 (Sun, 09 Aug 2020)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: harden lxc_fill_autodev() via save_mount_beneath_at()

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


  Commit: 567104e59e73f6b74ab19dc2bd87588c73f6d6eb
      https://github.com/lxc/lxc/commit/567104e59e73f6b74ab19dc2bd87588c73f6d6eb
  Author: St├ęphane Graber <stgraber at ubuntu.com>
  Date:   2020-08-09 (Sun, 09 Aug 2020)

  Changed paths:
    M configure.ac
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/file_utils.c
    M src/lxc/file_utils.h
    M src/lxc/syscall_numbers.h
    M src/lxc/syscall_wrappers.h
    M src/lxc/utils.c
    M src/lxc/utils.h

  Log Message:
  -----------
  Merge pull request #3513 from brauner/2020-08-09/openat2

openat2() and safe mounting


Compare: https://github.com/lxc/lxc/compare/da0fdceb6dfc...567104e59e73


More information about the lxc-devel mailing list