[lxc-devel] [lxc/lxc] bf58a9: execute: pass /proc/self/fd/<nr>

GitHub noreply at github.com
Thu Aug 23 15:58:44 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: bf58a9801305da3c79ec40e1b09d5c76999fd46a
      https://github.com/lxc/lxc/commit/bf58a9801305da3c79ec40e1b09d5c76999fd46a
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2018-08-23 (Thu, 23 Aug 2018)

  Changed paths:
    M src/lxc/execute.c

  Log Message:
  -----------
  execute: pass /proc/self/fd/<nr>

Passing /proc/1/fd/<nr> presupposes that CLONE_NEWPID was specified. This isn't
the case when users use lxc.namespace.keep = pid to inherit pid namespaces.
Pass /proc/self/fd/<nr> instead.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Reported-by: Mrinal Dhillon <mdhillon at juniper.net>


  Commit: 40a6212ec97305708e1829834340002bafdf263e
      https://github.com/lxc/lxc/commit/40a6212ec97305708e1829834340002bafdf263e
  Author: Wolfgang Bumiller <w.bumiller at errno.eu>
  Date:   2018-08-23 (Thu, 23 Aug 2018)

  Changed paths:
    M src/lxc/execute.c

  Log Message:
  -----------
  Merge pull request #2570 from brauner/2018-08-23/fix_privileged_logging

execute: pass /proc/self/fd/<nr>


Compare: https://github.com/lxc/lxc/compare/f24e4d0046cf...40a6212ec973
      **NOTE:** This service has 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