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"...
Merge pull request #21 from avagin/xemul

process: add ability to set a security label
test: add list of tests, which should be executed for all drivers

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

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

Alex, could you test it on the OpenVZ kernel

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