linux_factory: add StartInitialization()

After forking a new processes in a new container, we need to call exec()
and tune namespaces.

Signed-off-by: Andrew Vagin <avagin@openvz.org>
This commit is contained in:
Andrey Vagin 2014-12-15 18:00:57 +03:00 committed by Andrew Vagin
parent bce773a8c4
commit 2441babc48
1 changed files with 10 additions and 0 deletions

View File

@ -27,4 +27,14 @@ type Factory interface {
// Container is stopped
// System error
Load(id string) (Container, error)
// StartInitialization is an internal API to libcontainer used during the rexec of the
// container. pipefd is the fd to the child end of the pipe used to syncronize the
// parent and child process providing state and configuration to the child process and
// returning any errors during the init of the container
//
// Errors:
// pipe connection error
// system error
StartInitialization(pipefd uintptr) error
}