Linux-VServer Virtual Servers using Linux VServer #10

chcontext (cont.)

wilber:~# chcontext --flag sched /usr/bin/perl -e '1 while 1' &
wilber:~# chcontext sh -c "sleep 15; echo; echo -n 'Machine is: '; uname -m" &
[1] 20291
wilber:~# New security context is 49172

wilber:~# vuname --xid 49172 -s -t machine=weird
wilber:~#
Machine is: weird
wilber:~# uname -m
x86_64
wilber:~# vserver woody exec uname -m
i386
Copyright © 2005, 2006, Catalyst IT Ltd.