Daniel P. Berrange 3d1596b048 Introduce an LXC specific public API & library
This patch introduces support for LXC specific public APIs. In
common with what was done for QEMU, this creates a libvirt_lxc.so
library and libvirt/libvirt-lxc.h header file.

The actual APIs are

  int virDomainLxcOpenNamespace(virDomainPtr domain,
                                int **fdlist,
                                unsigned int flags);

  int virDomainLxcEnterNamespace(virDomainPtr domain,
                                 unsigned int nfdlist,
                                 int *fdlist,
                                 unsigned int *noldfdlist,
                                 int **oldfdlist,
                                 unsigned int flags);

which provide a way to use the setns() system call to move the
calling process into the container's namespace. It is not
practical to write in a generically applicable manner. The
nearest that we could get to such an API would be an API which
allows to pass a command + argv to be executed inside a
container. Even if we had such a generic API, this LXC specific
API is still useful, because it allows the caller to maintain
the current process context, in particular any I/O streams they
have open.

NB the virDomainLxcEnterNamespace() API is special in that it
runs client side, so does not involve the internal driver API.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2013-01-14 13:58:34 +00:00
..
2012-10-12 00:03:43 +02:00
2013-01-10 21:29:20 +08:00
2012-10-12 00:03:43 +02:00
2012-10-12 00:03:43 +02:00
2011-04-01 16:03:11 -06:00
2009-11-06 16:05:18 +01:00
2011-10-29 19:50:48 +02:00
2012-12-06 16:15:54 -07:00
2009-09-22 12:55:39 +02:00
2009-12-03 15:27:24 +01:00
2011-03-28 10:40:24 +08:00
2012-06-13 18:23:00 +01:00
2011-08-26 17:52:55 +02:00
2011-02-18 08:59:51 +01:00
2011-04-01 16:03:11 -06:00
2009-07-16 15:06:42 +02:00
2011-10-28 10:07:45 +01:00
2009-07-29 09:04:21 +01:00
2012-10-12 00:03:43 +02:00
2012-08-10 10:58:38 +02:00
2011-05-11 08:18:04 -06:00
2011-04-01 16:03:11 -06:00