Merge pull request #23 from aburluka/vz_branch

Vz branch

OK, let's go with what we have here. Anything non-yet-working is treated as "sudden bug"...
make: Fix typos for archive libs

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
make: Eliminate double building of objects

Because src/$(LIBCT).a and src/$(LIBCT).so are
separate targest the make -j2 command yields
two instances of make which are building same
targets simultaneously which leads to unneeded
double generation of dep files and such.

Simply make "so" to depends on "a" because they
are different in linking but not in building
improving build speed.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Merge pull request #21 from avagin/xemul

process: add ability to set a security label
make: Fix typos for archive libs

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrey Vagin <avagin@openvz.org>
make: Eliminate double building of objects

Because src/$(LIBCT).a and src/$(LIBCT).so are
separate targest the make -j2 command yields
two instances of make which are building same
targets simultaneously which leads to unneeded
double generation of dep files and such.

Simply make "so" to depends on "a" because they
are different in linking but not in building
improving build speed.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrey Vagin <avagin@openvz.org>
vz: don't set .add_*id_map

OpenVZ kernels doens't support user namespaces

Signed-off-by: Andrey Vagin <avagin@openvz.org>
ct: enter into a mount namespace after entering into other namespaces

mnt_ns must be the last one. After switching in a mount namespace,
the old /proc becomes inaccessible and we are not able switch other
namespaces

Signed-off-by: Andrey Vagin <avagin@openvz.org>
ct: don't close a file descriptor if it's equal to the required one

Signed-off-by: Andrey Vagin <avagin@openvz.org>
test: add list of tests, which should be executed for all drivers

Signed-off-by: Andrey Vagin <avagin@openvz.org>
libct: add ability to use one library with OpenVZ and upstream kernels

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Merge pull request #24 from cyrillos/master

For xemul@
Merge pull request #25 from avagin/xemul

libct: add ability to use one library with OpenVZ and upstream kernels
ct: return an error if we can't enter into CT

Signed-off-by: Andrey Vagin <avagin@openvz.org>
ct: return an error if execve fails

Signed-off-by: Andrey Vagin <avagin@openvz.org>
test: set descriptor and log level for the libct log engine

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