Josh Boyer <jwbo...@redhat.com> writes: >> So it looks mock is taking a buggy untested code path and things are not >> working as it expected. > > Quite possibly, yes. I instrumented the kernel a bit and it is indeed > failing in the alloc_pid call. > > Clark, thoughts here?
I will just add the solution is probably for mock to fork immediate after the unshare succeeds in creating a pid namespace. With the original process waiting for mock to exit and the child process doing everything that mock does now. That will allow mock to act as the init process in the pid namespace it just created. Eric -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/