Re: [PATCH 0/4] namespaces: close two ways out of a chroot

From: Christian Brauner

Date: Tue Dec 01 2026 - 13:52:53 EST


On Tue, Dec 01, 2026 at 09:24:31AM -0600, Serge E. Hallyn wrote:
> Only thing I noticed is it might be nice if enter_jail() didn't need to be
> duplicated in both tools/testing/selftests/namespaces/userns_chroot_test.c
> and tools/testing/selftests/filesystems/empty_mntns/empty_mntns.h .

Yeah, that's a good idea. I've folded enter_jail() into
tools/testing/selftests/filesystems/utils.c.

Thanks for the review!