]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/landlock: Add tests for execveat + AT_EXECVE_CHECK
authorMickaël Salaün <mic@digikod.net>
Thu, 12 Dec 2024 17:42:19 +0000 (18:42 +0100)
committerKees Cook <kees@kernel.org>
Thu, 19 Dec 2024 01:00:29 +0000 (17:00 -0800)
commit0e7f90f34cf79bf329d6d08edea3403544498843
tree3868cd939e097eca73f81c0c9cbbb3221152640d
parentb083cc815376a8ccfba6535b4d59a396b77601d4
selftests/landlock: Add tests for execveat + AT_EXECVE_CHECK

Extend layout1.execute with the new AT_EXECVE_CHECK flag.  The semantic
with AT_EXECVE_CHECK is the same as with a simple execve(2),
LANDLOCK_ACCESS_FS_EXECUTE is enforced the same way.

Cc: Günther Noack <gnoack@google.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Paul Moore <paul@paul-moore.com>
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Link: https://lore.kernel.org/r/20241212174223.389435-5-mic@digikod.net
Signed-off-by: Kees Cook <kees@kernel.org>
tools/testing/selftests/landlock/fs_test.c