Re: [libvirt] [PATCH 2/8] Add helper for running code in separate namespaces

2014-02-17 Thread Eric Blake
On 02/17/2014 09:38 AM, Daniel P. Berrange wrote: > Implement virProcessRunInMountNamespace, which runs callback of type > virProcessNamespaceCallback in a container namespace. This uses a > child process to run the callback, since you can't change the mount > namespace of a thread. This implies th

[libvirt] [PATCH 2/8] Add helper for running code in separate namespaces

2014-02-17 Thread Daniel P. Berrange
Implement virProcessRunInMountNamespace, which runs callback of type virProcessNamespaceCallback in a container namespace. This uses a child process to run the callback, since you can't change the mount namespace of a thread. This implies that callbacks have to be careful about what code they run d