diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2024-05-17 11:27:02 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-05-21 13:42:08 +0200 |
commit | e060e433e51246d970c5a8aa1c5ccd9ecc7ba4bf (patch) | |
tree | f7b5b83578580ada5b06ed49f0645d2e6f4a29db /net/unix/af_unix.c | |
parent | 041933a1ec7b4173a8e638cae4f8e394331d7e54 (diff) | |
download | linux-stable-e060e433e51246d970c5a8aa1c5ccd9ecc7ba4bf.tar.gz linux-stable-e060e433e51246d970c5a8aa1c5ccd9ecc7ba4bf.tar.bz2 linux-stable-e060e433e51246d970c5a8aa1c5ccd9ecc7ba4bf.zip |
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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions