[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [RFC PATCH 2/2] LXC: Create ro overlay mounts only if we're not within a user namespace

On Mon, Jul 01, 2013 at 08:29:14AM +0200, Richard Weinberger wrote:
> Am 01.07.2013 04:26, schrieb Gao feng:
> >> Well, given that we're at rc2 now & I'm still unclear about how some
> >> aspects of the userns setup is working, I'm afraid we'll have to wait
> >> until 1.1.1 for the userns LXC code to merge.  I'll aim todo it next
> >> week, so that we have plenty of time for further testing before the
> >> 1.1.1 release.
> >>
> > 
> > Ok, I think Richard had tested the userns support.
> > Hi Richard, can you give me your ack or tested-by?
> I'm still facing one userns related issue.


> After creating it attach to it's console, you'll find bash as pid 1.
> And you'll find that /proc/1/ is not fully uid/gid-mapped:
> ---cut---
> # ls -la /proc/1/
> total 0
> dr-xr-xr-x  8 root   root    0 Jul  1 06:06 .
> dr-xr-xr-x 74 nobody nogroup 0 Jul  1 06:06 ..
> dr-xr-xr-x  2 root   root    0 Jul  1 06:06 attr


> Any ideas what's going on here?

No, it is very odd. It smells like a kernel issue to me. What
version are you running ?

I've also tried running the demo programs shown on the LWN.net


and they don't operate in the way described by the article - the demo
programs continue to ru as 'nfsnobody' even after the mappings are

I'm just using the Fedora 3.9.4-303 kernel, rebuilt with userns enabled
in KConfig.  I'm wondering if there is still stuff missing in 3.9.x
that prevents this from working properly, or if the kernel behaviour
changed after those LWN articles were written.

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

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]