]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/landlock: Test connected and unconnected datagram UNIX socket
authorTahera Fahimi <fahimitahera@gmail.com>
Thu, 5 Sep 2024 00:13:59 +0000 (18:13 -0600)
committerMickaël Salaün <mic@digikod.net>
Mon, 16 Sep 2024 21:50:50 +0000 (23:50 +0200)
commitd1cc0ef80f2377a6970737ed88d95014ca461993
tree8be8cbd213abc08c5a9651a947d71b9716d15ace
parent4f9a5b50d3b39027c5fdb44b33835209665fe069
selftests/landlock: Test connected and unconnected datagram UNIX socket

Check the specific case where a scoped datagram socket is connected and
send(2) works, whereas sendto(2) is denied if the datagram socket is not
connected.

Signed-off-by: Tahera Fahimi <fahimitahera@gmail.com>
Link: https://lore.kernel.org/r/c28c9cd8feef67dd25e115c401a2389a75f9983b.1725494372.git.fahimitahera@gmail.com
[mic: Use more EXPECT and avoid negative ASSERT, use variables dedicated
per process, remove useless buffer]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/scoped_abstract_unix_test.c