selftests/landlock: Exhaustive test for the IOCTL allow-list
authorGünther Noack <gnoack@google.com>
Fri, 19 Apr 2024 16:11:18 +0000 (16:11 +0000)
committerMickaël Salaün <mic@digikod.net>
Mon, 13 May 2024 04:58:33 +0000 (06:58 +0200)
commitbce605e0cfa55da513b672500dd838be1ef41de7
treeb6e3fdc959025937bd48cf7735798f24b9109f3b
parentf83d51a5bdfe5ab56c27fd5dfe01c613b37e2dad
selftests/landlock: Exhaustive test for the IOCTL allow-list

This test checks all IOCTL commands implemented in do_vfs_ioctl().

Test coverage for security/landlock is 90.9% of 722 lines according to
gcc/gcov-13.

Suggested-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20240419161122.2023765-8-gnoack@google.com
[mic: Add test coverage]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/fs_test.c