Hi Kuniyuki, Günther! > Date: 2026-11-16 00:52:32+0000 > From: Kuniyuki Iwashima > > On Tue, 03 Nov 2026 21:22:04 +0100, Günther Noack wrote: > > In the Linux kernel code, __scm_send() in linux.git net/core/scm.c > > walks all control messages in a loop like this: > > > > for_each_cmsghdr(cmsg, msg) { > > // ... > > switch (cmsg->cmsg_type) > > { > > case SCM_RIGHTS: > > ... append(!) file descriptors > > up to the SCM_MAX_FD limit ... > > break; > > case SCM_CREDENTIALS: > > ... replace previously set credentials ... > > break; > > default: > > goto error; > > } > > } > > > > So it is possible to pass multiple SCM_* messages -- they will compose > > if possible and override the previous value if not. Since their > > contents are being conflated that way, they will appear as one message > > again on the receiving side. > > > > Keep the recommendation as portability advice, and describe the Linux > > behavior. > > > > Fixes: 5b5cb1958062 (2018-07-10; "unix.7: When sending ancillary data, only one item of each type may be sent") > > Cc: Michael Kerrisk > > Cc: Kuniyuki Iwashima > > Assisted-by: LLM > > Signed-off-by: Günther Noack > > Reviewed-by: Kuniyuki Iwashima Thanks! I've applied the patch. Have a lovely night! Alex --