Re: [PATCH v4 02/10] af_unix: record the pid of the sending thread

From: Kuniyuki Iwashima

Date: Thu Oct 08 2026 - 00:35:41 EST


On Mon, Oct 5, 2026 at 8:09 AM Andrew Halaney <andrew@xxxxxxxxxxxx> wrote:
>
> From: Christian Brauner <brauner@xxxxxxxxxx>
>
> Currently only the struct pid of the thread-group leader is recorded.
> The identity of the actual thread that sent the message or is connected
> to a given socket cannot be retrieved.
>
> Add the plumbing to make it possible to retrieve a pidfd for the sender.
> Nothing uses the thread-specific struct pid yet. No functional changes.
>
> Signed-off-by: Christian Brauner (Amutable) <brauner@xxxxxxxxxx>
> Reviewed-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@xxxxxxxxxxxxxx>
> Signed-off-by: Andrew Halaney <andrew@xxxxxxxxxxxx>

Reviewed-by: Kuniyuki Iwashima <kuniyu@xxxxxxxxxx>