]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/landlock: Skip overlayfs tests when not supported
authorJeff Xu <jeffxu@google.com>
Fri, 13 Jan 2023 05:32:29 +0000 (05:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:34:09 +0000 (09:34 +0100)
commit6c51c0702815225939f464285db5ce3f575221ea
treea303e4f08868ef76a30bc4e3a8e4e8d0462c6741
parentfa7e18233f4f253e6bc6fefdbe296683a6a5b0ed
selftests/landlock: Skip overlayfs tests when not supported

commit 366617a69e60610912836570546f118006ebc7cb upstream.

overlayfs may be disabled in the kernel configuration, causing related
tests to fail.  Check that overlayfs is supported at runtime, so we can
skip layout2_overlay.* accordingly.

Signed-off-by: Jeff Xu <jeffxu@google.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230113053229.1281774-2-jeffxu@google.com
[mic: Reword comments and constify variables]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/landlock/fs_test.c