1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/testing/selftests/net/af_unix
Kuniyuki Iwashima e060e433e5 selftest: af_unix: Make SCM_RIGHTS into OOB data.
scm_rights.c covers various test cases for inflight file descriptors
and garbage collector for AF_UNIX sockets.

Currently, SCM_RIGHTS messages are sent with 3-bytes string, and it's
not good for MSG_OOB cases, as SCM_RIGTS cmsg goes with the first 2-bytes,
which is non-OOB data.

Let's send SCM_RIGHTS messages with 1-byte character to pack SCM_RIGHTS
into OOB data.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Michal Luczaj <mhal@rbox.co>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-05-21 13:42:08 +02:00
..
diag_uid.c selftests/net: unix: fix unused variable compiler warning 2023-11-27 18:12:07 -08:00
Makefile selftest: af_unix: Test GC for SCM_RIGHTS. 2024-03-29 08:28:46 -07:00
scm_pidfd.c selftests: net: remove unused variables 2023-10-16 09:20:08 +01:00
scm_rights.c selftest: af_unix: Make SCM_RIGHTS into OOB data. 2024-05-21 13:42:08 +02:00
test_unix_oob.c selftests: net: remove unused variables 2023-10-16 09:20:08 +01:00
unix_connect.c selftests: net: af_unix: Fix a build error of unix_connect.c. 2022-07-20 21:02:15 -07:00