]> git.ipfire.org Git - thirdparty/libvirt.git/commit
LXC: Creating devices for container on host side
authorGao feng <gaofeng@cn.fujitsu.com>
Fri, 7 Jun 2013 07:12:22 +0000 (15:12 +0800)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 2 Jul 2013 10:20:04 +0000 (11:20 +0100)
commite1d32bb9558179147b0217ba09fc26376a705849
tree1a3fed7534d271c6671bc4be8559aea720b8f259
parent9a085a228c8cf87cd75144d3993e3d4eae952e2e
LXC: Creating devices for container on host side

user namespace doesn't allow to create devices in
uninit userns. We should create devices on host side.

We first mount tmpfs on dev directroy under state dir
of container. then create devices under this dev dir.

Finally in container, mount the dev directroy created
on host to the /dev/ directroy of container.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
src/lxc/lxc_container.c
src/lxc/lxc_controller.c