Commit 6249f305 authored by Jeff Xu's avatar Jeff Xu Committed by Greg Kroah-Hartman
Browse files

selftests/landlock: Skip overlayfs tests when not supported



commit 366617a6 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: default avatarJeff Xu <jeffxu@google.com>
Reviewed-by: default avatarGuenter 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: default avatarMickaël Salaün <mic@digikod.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 597ecd95
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment