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 #25 from avagin/xemul

libct: add ability to use one library with OpenVZ and upstream kernels