V8 test-in-container patch

DJ Delorie dj@redhat.com
Fri Aug 17 02:14:00 GMT 2018


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



More information about the Libc-alpha mailing list