Re: [PATCH v3 06/10] af_unix: record the pid of the connecting thread
From: Kuniyuki Iwashima
Date: Thu Oct 01 2026 - 00:34:13 EST
On Mon, Sep 28, 2026 at 2:27 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 connected to a given socket
> cannot be retrieved.
>
> Add the plumbing to make it possible to retrieve a pidfd for the
> connecting thread. 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>