selftests/landlock: Add layout1.refer_mount_root
authorMickaël Salaün <mic@digikod.net>
Thu, 16 May 2024 18:19:35 +0000 (20:19 +0200)
committerMickaël Salaün <mic@digikod.net>
Fri, 31 May 2024 14:41:54 +0000 (16:41 +0200)
commit0055f53aac80fd938bf7cdfad7ad414ca6c0e198
tree7e07216209ea7e4bf1f4dff89fe48f138dc073ee
parent88da52ccd66e65f2e63a6c35c9dff55d448ef4dc
selftests/landlock: Add layout1.refer_mount_root

Add tests to check error codes when linking or renaming a mount root
directory.  This previously triggered a kernel warning, but it is fixed
with the previous commit.

Cc: Günther Noack <gnoack@google.com>
Cc: Paul Moore <paul@paul-moore.com>
Link: https://lore.kernel.org/r/20240516181935.1645983-3-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/fs_test.c