vserver Howto/FAQ

Howto index

How do I know in which security context process N is running

You can tell this from the /proc/N/status file. Do this

	/usr/sbin/chcontext --ctx 1 cat /proc/N/status

Check the s_context entry. You will see the context number (say X). Then do

	/usr/sbin/chcontext --ctx X /bin/sh

You are now in the same security context as process N. You can kill it, trace it, whatever.