Hi, > Date: 2026-11-16 00:53:28+0000 > From: Kuniyuki Iwashima > > On Tue, 03 Nov 2026 21:22:05 +0100, Günther Noack wrote: > > Autobind happens if either one of SO_PASSCRED/SO_PASSPIDFD is set and > > either connect() or sendmsg() happens. Mention SO_PASSPIDFD and > > clarify that autobind does not happen immediately when setting these > > socket options. > > > > In linux.git net/unix/af_unix.c, unix_autobind() is called by > > unix_dgram_connect(), unix_stream_connect() and unix_dgram_sendmsg(), > > if the socket has no address and unix_may_passcred() is true. > > > > unix_may_passcred() is also true when SO_PASSPIDFD is set, which was > > added in linux.git 5e2ff6704a27 (2023-06-12; "scm: add SO_PASSPIDFD and > > SCM_PIDFD"), Linux 6.5. > > > > Also, the old text said "not yet connected", but the condition is > > about the socket not being bound. > > > > Fixes: 9d1fd1157306 (1999-06-15, 2022-12-19; "man-pages 1.24") > > Fixes: 0cf2caa41ea6 (2010-10-10; "unix.7: Document the autobind feature") > > Cc: Michael Kerrisk > > Cc: Alexander Mikhalitsyn > > Cc: Kuniyuki Iwashima > > Assisted-by: LLM > > Signed-off-by: Günther Noack > > Reviewed-by: Kuniyuki Iwashima Thanks! Patch applied. Cheers, Alex --