# Re: \[PATCH v3 net-next 2/9\] af\_unix: Don't pass struct socket to maybe\_add\_creds().

- From: Willem de Bruijn \<willemdebruijn.kernel@gmail.com\>
- Date: 2025-05-15 18:07:17 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/05/11327367
- Thread: https://ratatoskr.run/netdev/2025/05/11327261/t.md

```text
Kuniyuki Iwashima wrote:
> We will move SOCK_PASS{CRED,PIDFD,SEC} from struct socket.flags
> to struct sock for better handling with SOCK_PASSRIGHTS.
> 
> Then, we don't need to access struct socket in maybe_add_creds().
> 
> Let's pass struct sock to maybe_add_creds() and its caller
> queue_oob().
> 
> While at it, we append the unix_ prefix and fix double spaces
> around the pid assignment.
> 
> Signed-off-by: Kuniyuki Iwashima <redacted>

Reviewed-by: Willem de Bruijn <willemb@google.com>
```
