]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerMickaël Salaün <mic@digikod.net>
Fri, 13 Jan 2023 20:23:22 +0000 (21:23 +0100)
commit366617a69e60610912836570546f118006ebc7cb
treeacbfee510e3b17b52407189d9e41011842c29205
parent3e52e5b077f6c3e26801d87335aac35411744108
selftests/landlock: Skip overlayfs tests when not supported

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>
tools/testing/selftests/landlock/fs_test.c