On Fri, Jun 07, 2013 at 03:12:24PM +0800, Gao feng wrote: > container will create /dev/pts directory in /dev. > the owner of /dev should be the root user of container. > > Signed-off-by: Gao feng <gaofeng@xxxxxxxxxxxxxx> > --- > src/lxc/lxc_controller.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c > index 66eae16..f6622bf 100644 > --- a/src/lxc/lxc_controller.c > +++ b/src/lxc/lxc_controller.c > @@ -1257,6 +1257,9 @@ static int virLXCControllerSetupDev(virLXCControllerPtr ctrl) > goto cleanup; > } > > + if (virLXCControllerChown(ctrl, dev) < 0) > + goto cleanup; > + > ret = 0; > cleanup: > VIR_FREE(opts); ACK Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list