[libvirt] [PATCH v3 07/12] LXC: fuse: Change files owner to the root user of container

Daniel P. Berrange berrange at redhat.com
Tue Jun 4 17:07:14 UTC 2013


On Thu, May 23, 2013 at 12:06:51PM +0800, Gao feng wrote:
> Otherwise we will fail to mount the meminfo file.
> This patch also allows any users to access the
> fuse mount point.
> 
> Signed-off-by: Gao feng <gaofeng at cn.fujitsu.com>

We actually need the following fix even without userns work:

> @@ -307,6 +312,7 @@ int lxcSetupFuse(virLXCFusePtr *f, virDomainDefPtr def)
>      /* process name is libvirt_lxc */
>      if (fuse_opt_add_arg(&args, "libvirt_lxc") == -1 ||
>          fuse_opt_add_arg(&args, "-odirect_io") == -1 ||
> +        fuse_opt_add_arg(&args, "-oallow_other") == -1 ||
>          fuse_opt_add_arg(&args, "-ofsname=libvirt") == -1)
>          goto cleanup1;

So I've sent a patch to add that separately.


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 :|




More information about the libvir-list mailing list