[libvirt] [PATCH 08/14] Add helper for running code in separate namespaces

2014-02-07 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

Re: [libvirt] [PATCH 08/14] Add helper for running code in separate namespaces

2014-02-07 Thread Eric Blake
On 02/07/2014 08:33 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 that

Re: [libvirt] [PATCH 08/14] Add helper for running code in separate namespaces

2014-02-07 Thread Daniel P. Berrange
On Fri, Feb 07, 2014 at 10:31:03AM -0700, Eric Blake wrote: On 02/07/2014 08:33 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