and the testme in verbose:
Linux-VServer Test [V0.17] Copyright (C) 2003-2006 H.Poetzl
chcontext is working.
chbind is working.
chcontext 0.30.216-pre3062 -- allocates/enters a security context
This program is part of util-vserver 0.30.216-pre3062
Copyright (C) 2004 Enrico Scholz
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
Linux 3.18.10-vs2.3.7.4 #1 SMP Mon Mar 30 17:39:15 CEST 2015 x86_64
Ea 0.30.216 236/glibc (DSa) <compat,v11,fscompat,v13,net,v21,v22,v23,netv2>
VCI: 0002:0308 236 13013f11 (TbsPWD)
(root@buildwheezy64.aqueos.net)
(gcc version 4.7.2 (Debian 4.7.2-5)
)
#1 SMP Mon Mar 30 17:39:15 CEST 2015
--- [ 0] dynamic contexts are disabled. [ 1] legacy support is disabled. [ 2] legacy network support is disabled. [ 3] ngen networking is disabled. [ 4] procfs is secure by default. [ 5] the hard scheduler is disabled. [ 6] the idle task is unlimited. [ 7] idle time is not skipped. [ 8] cow link breaking is fully supported. [10] name spaces are enabled. [15] legacy version id is not used. [16] vserver debugging is enabled. [17] history tracing is disabled. [24] persistent tagging used is ID24. --- [000]# chcontext --xid 49151 true && chcontext --xid 45678 true [000]# succeeded. [001]# chcontext --xid 45678 egrep 'context|VxID' /proc/self/status [001]# succeeded. [011]# chcontext --secure --xid 45678 mknod /tmp/testme.sh.bEnrDm/node c 0 0 [011]# succeeded. [031]# chcontext --xid 49151 --hostname zaphod.18919 uname -a | grep -q zaphod.18919 [031]# succeeded. [101]# chbind --nid 49151 --ip 192.168.0.42 true [101]# succeeded. [102]# chbind --nid 49151 --ip 192.168.0.1/255.255.255.0 --ip 10.0.0.1/24 true [102]# succeeded. [201]# chcontext --xid 45678 --flag fakeinit bash -c 'test $$ -eq 1' [201]# succeeded. [202]# chcontext --xid 49151 --flag fakeinit bash -c 'test $$ -eq 1' [202]# succeeded. --- [L01]# chcontext --xid 45601 bash -c 'true &' [L01]# succeeded. [L02]# chcontext --xid 45602 bash -c 'true | true' [L02]# succeeded. [L03]# chcontext --xid 45603 bash -c 'true & true' [L03]# succeeded. [L11]# chcontext --xid 45611 bash -c 'true >/dev/null' </dev/zero [L11]# succeeded. [L12]# chcontext --xid 45612 bash -c 'true </dev/zero' >/dev/null [L12]# succeeded. [L21]# chcontext --xid 45621 bash -c 'bash -c "true &"&' [L21]# succeeded. [L22]# chcontext --xid 45622 bash -c 'bash -c "false | true &"&' [L22]# succeeded. [L31]# chcontext --xid 45631 bash -c 'echo `ls`' [L31]# succeeded.Received on Mon Mar 30 18:14:59 2015