]> git.dujemihanovic.xyz Git - linux.git/commit
selftests/landlock: Add supports_filesystem() helper
authorMickaël Salaün <mic@digikod.net>
Mon, 12 Jun 2023 19:14:27 +0000 (21:14 +0200)
committerMickaël Salaün <mic@digikod.net>
Mon, 12 Jun 2023 19:26:21 +0000 (21:26 +0200)
commit3de64b656b3c827d7d194558b0ae3a09400b116d
treede2e7ee4706307ecf62d4719ea68fa7d446d5333
parent592efeb4a07ee46204c0f87001455c28f4743dea
selftests/landlock: Add supports_filesystem() helper

Replace supports_overlayfs() with supports_filesystem() to be able to
check several filesystems.  This will be useful in a following commit.

Only check for overlay filesystem once in the setup step, and then rely
on self->skip_test.

Cc: Guenter Roeck <groeck@chromium.org>
Cc: Jeff Xu <jeffxu@google.com>
Link: https://lore.kernel.org/r/20230612191430.339153-4-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/fs_test.c