]> git.baikalelectronics.ru Git - kernel.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)
commit519bb44bddf53283e990fa641e3dd0a7ddf2a560
treea303e4f08868ef76a30bc4e3a8e4e8d0462c6741
parent1eec60fcf9fb09d5f3e7a88e0e69368c3ea11557
selftests/landlock: Skip overlayfs tests when not supported

commit 4fb3dc705afbace021fc588c9d247adf97c015d5 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