Add check for ID already in use.
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
More error handling and fixup

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
nsinit: Add Makefile

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Andrew Vagin <avagin@openvz.org>
nsinit: exec

Signed-off-by: Andrew Vagin <avagin@openvz.org>
libct: start a process

Signed-off-by: Andrew Vagin <avagin@openvz.org>
nsinit: add ct.RunState

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Dockerfile: compile libct

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Add namespaces/types to include it in libcontainer

Signed-off-by: Andrew Vagin <avagin@openvz.org>
libct: ct.SetNsMask

Signed-off-by: Andrew Vagin <avagin@openvz.org>
libct: set parent death signal

Signed-off-by: Andrew Vagin <avagin@openvz.org>
libct: set capabilities

Signed-off-by: Andrew Vagin <avagin@openvz.org>
build with and without cgo

Signed-off-by: Andrey Vagin <avagin@openvz.org>