]> git.ipfire.org Git - thirdparty/lxc.git/commit
execute: use execveat() syscall if supported 2341/head
authorTycho Andersen <tycho@tycho.ws>
Tue, 22 May 2018 23:33:17 +0000 (23:33 +0000)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 23 May 2018 10:05:10 +0000 (12:05 +0200)
commit4b5b3a2a299b4633123f20f41e9c6188aa605e13
treeab14a97221e90309898d4f9f09399196dca2c07f
parent394769b16ae5a21353216efb7f1ac2d283f8a433
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@tycho.ws>
[christian.brauner@ubuntu.com: adapt error message and whitespace fixes]
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c
src/lxc/execute.c
src/lxc/start.h