[lxc-devel] [lxc/lxc] 5cf511: mount_utils: initialize fd

Stéphane Graber noreply at github.com
Fri Feb 5 22:01:57 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 5cf51172e3031f1b739d36b24b426a2def708b9b
      https://github.com/lxc/lxc/commit/5cf51172e3031f1b739d36b24b426a2def708b9b
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M src/lxc/mount_utils.h

  Log Message:
  -----------
  mount_utils: initialize fd

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


  Commit: 0d50f2882c8427565c092ba3931eb1cad36ad96f
      https://github.com/lxc/lxc/commit/0d50f2882c8427565c092ba3931eb1cad36ad96f
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M src/lxc/attach.c

  Log Message:
  -----------
  attach: switch to simple mount()

At the point where we're remounging proc and sys we're in the container's
namespaces so there's no chance of escape so a simple mount() syscall will
suffice.

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


  Commit: 60218ee70ba6e38d83301900f3eacb02e840a4df
      https://github.com/lxc/lxc/commit/60218ee70ba6e38d83301900f3eacb02e840a4df
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

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

  Log Message:
  -----------
  mount_utils: kill mount_filesystem()

We have way better helpers now.

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


  Commit: 01149adf724d5d3cfe79918e002c1ee5fac89080
      https://github.com/lxc/lxc/commit/01149adf724d5d3cfe79918e002c1ee5fac89080
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M src/lxc/attach.c
    M src/lxc/mount_utils.c
    M src/lxc/mount_utils.h

  Log Message:
  -----------
  Merge pull request #3660 from brauner/2021-02-05/fixes_1

mount_utils: initialize fd


Compare: https://github.com/lxc/lxc/compare/338c2abe8392...01149adf724d


More information about the lxc-devel mailing list