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
Reply to
Kuniyuki Iwashima, 2025-05-14
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>
Thread (27 messages) 27 messages, 2 authors, last reply 2025-05-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help