diff options
author | Mickaël Salaün <mic@linux.microsoft.com> | 2021-04-22 18:41:20 +0300 |
---|---|---|
committer | James Morris <jamorris@linux.microsoft.com> | 2021-04-22 22:22:11 +0300 |
commit | e1199815b47be83346c03e20a3de76f934e4bb34 (patch) | |
tree | e71d6716f8d7d3aa57a7f179e931276bc5027524 /tools/testing/selftests/landlock/config | |
parent | 265885daf3e5082eb9f6e2a23bdbf9ba4456a21b (diff) | |
download | linux-e1199815b47be83346c03e20a3de76f934e4bb34.tar.xz |
selftests/landlock: Add user space tests
Test all Landlock system calls, ptrace hooks semantic and filesystem
access-control with multiple layouts.
Test coverage for security/landlock/ is 93.6% of lines. The code not
covered only deals with internal kernel errors (e.g. memory allocation)
and race conditions.
Cc: James Morris <jmorris@namei.org>
Cc: Jann Horn <jannh@google.com>
Cc: Serge E. Hallyn <serge@hallyn.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
Reviewed-by: Vincent Dagonneau <vincent.dagonneau@ssi.gouv.fr>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210422154123.13086-11-mic@digikod.net
Signed-off-by: James Morris <jamorris@linux.microsoft.com>
Diffstat (limited to 'tools/testing/selftests/landlock/config')
-rw-r--r-- | tools/testing/selftests/landlock/config | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/selftests/landlock/config b/tools/testing/selftests/landlock/config new file mode 100644 index 000000000000..0f0a65287bac --- /dev/null +++ b/tools/testing/selftests/landlock/config @@ -0,0 +1,7 @@ +CONFIG_OVERLAY_FS=y +CONFIG_SECURITY_LANDLOCK=y +CONFIG_SECURITY_PATH=y +CONFIG_SECURITY=y +CONFIG_SHMEM=y +CONFIG_TMPFS_XATTR=y +CONFIG_TMPFS=y |