Daniel P. Berrange 1279b6a5b1 Add helper for running code in separate namespaces
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 due to async safety rules.

Idea by Dan Berrange, based on an initial report by Reco
<recoverym4n@gmail.com> at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732394

Signed-off-by: Daniel Berrange <berrange@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit 7c72ef6f555f1f9844d51be2f38f078bc908652c)
2014-02-18 13:18:46 +00:00
..
2013-10-21 14:03:52 +01:00
2013-11-20 12:35:47 +01:00
2013-11-20 09:14:55 -07:00
2013-11-20 09:14:55 -07:00
2013-10-21 14:03:52 +01:00
2013-11-20 09:14:55 -07:00