selftests/landlock: Do not allocate memory in fixture data

Do not allocate self->dir_path in the test process because this would
not be visible in the FIXTURE_TEARDOWN() process when relying on
fork()/clone3() instead of vfork().

This change is required for a following commit removing vfork() call to
not break the layout3_fs.* test cases.

Cc: Günther Noack <>
Cc: Shuah Khan <>
Reviewed-by: Kees Cook <>
Signed-off-by: Mickaël Salaün <>
1 file changed