execute: do not check inherited fds again

This is already done in do_lxcapi_start{l}() so a) no need to do it again here
and b) this would close the state socket pair sockets, corrup the fd, and lead
to EBADF.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-05-08 17:58:36 +02:00
parent cef701ede3
commit c7a2deb2dc
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -116,9 +116,6 @@ int lxc_execute(const char *name, char *const argv[], int quiet,
{
struct execute_args args = {.argv = argv, .quiet = quiet};
if (lxc_check_inherited(handler->conf, false, &handler->conf->maincmd_fd, 1))
return -1;
handler->conf->is_execute = 1;
return __lxc_start(name, handler, &execute_start_ops, &args, lxcpath,
backgrounded, error_num);