]> www.infradead.org Git - users/jedix/linux-maple.git/commit
af_unix: Don't pass struct socket to maybe_add_creds().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Mon, 19 May 2025 20:57:53 +0000 (13:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 May 2025 09:24:18 +0000 (10:24 +0100)
commit3041bbbeb41b807d2e24d7d78d9cc1387d95898a
tree108325af409e17aefb360dd3af950847e1bea91d
parent350d4546295949c8a29e345b340e57772813037a
af_unix: Don't pass struct socket to maybe_add_creds().

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 <kuniyu@amazon.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c