[lxc-devel] [lxc/lxc] 4b5b3a: execute: use execveat() syscall if supported

GitHub noreply at github.com
Wed May 23 10:25:44 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 4b5b3a2a299b4633123f20f41e9c6188aa605e13
      https://github.com/lxc/lxc/commit/4b5b3a2a299b4633123f20f41e9c6188aa605e13
  Author: Tycho Andersen <tycho at tycho.ws>
  Date:   2018-05-23 (Wed, 23 May 2018)

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

  Log Message:
  -----------
  execute: use execveat() syscall if supported

The execveat allows us to exec stuff via a fd so we don't have to bind mount
stuff in. See the comment about why we're using the syscall directly.

Closes #2339.

Signed-off-by: Tycho Andersen <tycho at tycho.ws>
[christian.brauner at ubuntu.com: adapt error message and whitespace fixes]
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 12ad9ba7a8011e0ab2a7ce7ac7d7c2b47669141d
      https://github.com/lxc/lxc/commit/12ad9ba7a8011e0ab2a7ce7ac7d7c2b47669141d
  Author: Christian Brauner <christian at brauner.io>
  Date:   2018-05-23 (Wed, 23 May 2018)

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

  Log Message:
  -----------
  Merge pull request #2341 from tych0/optionally-execveat

use execveat syscall to exec lxc-init if supported


Compare: https://github.com/lxc/lxc/compare/394769b16ae5...12ad9ba7a801
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the lxc-devel mailing list