diff options
author | Tahera Fahimi <fahimitahera@gmail.com> | 2024-09-04 18:13:59 -0600 |
---|---|---|
committer | Mickaël Salaün <mic@digikod.net> | 2024-09-16 23:50:50 +0200 |
commit | d1cc0ef80f2377a6970737ed88d95014ca461993 (patch) | |
tree | 8be8cbd213abc08c5a9651a947d71b9716d15ace /samples/landlock | |
parent | 4f9a5b50d3b39027c5fdb44b33835209665fe069 (diff) | |
download | linux-d1cc0ef80f2377a6970737ed88d95014ca461993.tar.gz linux-d1cc0ef80f2377a6970737ed88d95014ca461993.tar.bz2 linux-d1cc0ef80f2377a6970737ed88d95014ca461993.zip |
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>
Diffstat (limited to 'samples/landlock')
0 files changed, 0 insertions, 0 deletions