]> git.ipfire.org Git - thirdparty/lxc.git/commit
execute: pass /proc/self/fd/<nr> 2570/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 23 Aug 2018 15:35:40 +0000 (17:35 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 23 Aug 2018 15:43:03 +0000 (17:43 +0200)
commitbf58a9801305da3c79ec40e1b09d5c76999fd46a
tree8aed2fa7bf73bc9c80eb02a213474b293c907757
parentf24e4d0046cf50ca03446d42f5cc9b1ca0a92c91
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@ubuntu.com>
Reported-by: Mrinal Dhillon <mdhillon@juniper.net>
src/lxc/execute.c