This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: V8 test-in-container patch


Florian Weimer <fweimer@redhat.com> writes:
> Please have a look at misc/tst-ttyname.  It uses a bind mount to put 
> /proc into the chroot, and it does not have this problem.

So that gets past the /proc mount, but if you bind mount /proc, it's in
the wrong namespace and you can't fix the UID map:

error: test-container.c:948: can't write to /proc/self/uid_map

Without the uid map, you don't own your own files in the new namespace.

Like I said, fragile :-P


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]