Re: [PATCH 2/2] selftests/harness: Merge TEST_F_FORK() into TEST_F()

2024-02-26 Thread Mickaël Salaün
On Mon, Feb 26, 2024 at 11:04:12AM -0800, Kees Cook wrote: > On Mon, Feb 26, 2024 at 05:23:35PM +0100, Mickaël Salaün wrote: > > Remplace Landlock-specific TEST_F_FORK() with an improved TEST_F() which > > brings four related changes: > > > > Run TEST_F()'s tests in a grandchild process to make it

Re: [PATCH 2/2] selftests/harness: Merge TEST_F_FORK() into TEST_F()

2024-02-26 Thread Kees Cook
On Mon, Feb 26, 2024 at 05:23:35PM +0100, Mickaël Salaün wrote: > Remplace Landlock-specific TEST_F_FORK() with an improved TEST_F() which > brings four related changes: > > Run TEST_F()'s tests in a grandchild process to make it possible to > drop privileges and delegate teardown to the parent. >

[PATCH 2/2] selftests/harness: Merge TEST_F_FORK() into TEST_F()

2024-02-26 Thread Mickaël Salaün
Remplace Landlock-specific TEST_F_FORK() with an improved TEST_F() which brings four related changes: Run TEST_F()'s tests in a grandchild process to make it possible to drop privileges and delegate teardown to the parent. Compared to TEST_F_FORK(), simplify handling of the test grandchild proces