diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-04-23 19:05:48 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-04-25 00:21:00 +0200 |
commit | 904b94c07af84b7e4c98de3bbb822ccffcaf8c40 (patch) | |
tree | 26e2cba5aba3c1bd2d680289256af239026faec4 /socket/Makefile | |
parent | 323fe6a1a9204e2126df63cb81a88831d1cdeaf5 (diff) | |
download | glibc-904b94c07af84b7e4c98de3bbb822ccffcaf8c40.tar.gz glibc-904b94c07af84b7e4c98de3bbb822ccffcaf8c40.tar.xz glibc-904b94c07af84b7e4c98de3bbb822ccffcaf8c40.zip |
socket: Add a test for MSG_CMSG_CLOEXEC
This checks that: * We can send and receive fds over Unix domain sockets using SCM_RIGHTS; * msg_controllen, cmsg_level, cmsg_type, cmsg_len are all filled in correctly on receive; * Most importantly, the received fd has or has not the close-on-exec flag set depending on whether we pass MSG_CMSG_CLOEXEC to recvmsg (). Checked on i686-gnu and x86_64-linux-gnu. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> Signed-off-by: Sergey Bugaev <bugaevc@gmail.com> Message-Id: <20230423160548.126576-4-bugaevc@gmail.com>
Diffstat (limited to 'socket/Makefile')
-rw-r--r-- | socket/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/socket/Makefile b/socket/Makefile index fffed7dd82..94951ae3e7 100644 --- a/socket/Makefile +++ b/socket/Makefile @@ -35,6 +35,7 @@ tests := \ tst-accept4 \ tst-sockopt \ tst-cmsghdr \ + tst-cmsg_cloexec \ # tests tests-internal := \ |