]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/landlock: Test signal created by out-of-bound message
authorTahera Fahimi <fahimitahera@gmail.com>
Fri, 6 Sep 2024 21:30:06 +0000 (15:30 -0600)
committerMickaël Salaün <mic@digikod.net>
Mon, 16 Sep 2024 21:50:54 +0000 (23:50 +0200)
commitf34e9ce5f4794387121120b2d2ff5aa265ef6ce9
treefe664091ed33f83683953c909788a777577b4335
parentc8994965013ee62cfb0f3cec01aa447f9077a869
selftests/landlock: Test signal created by out-of-bound message

Add a test to verify that the SIGURG signal created by an out-of-bound
message in UNIX sockets is well controlled by the file_send_sigiotask
hook.

Test coverage for security/landlock is 92.2% of 1046 lines according to
gcc/gcov-14.

Signed-off-by: Tahera Fahimi <fahimitahera@gmail.com>
Link: https://lore.kernel.org/r/50daeed4d4f60d71e9564d0f24004a373fc5f7d5.1725657728.git.fahimitahera@gmail.com
[mic: Improve commit message and add test coverage, improve test with
four variants to fully cover the hook, use abstract unix socket to avoid
managing a file, use dedicated variable per process, add comments, avoid
negative ASSERT, move close calls]
Co-developed-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/scoped_signal_test.c