]> www.infradead.org Git - users/jedix/linux-maple.git/commit
af_unix: Factorise test_bit() for SOCK_PASSCRED and SOCK_PASSPIDFD.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Mon, 19 May 2025 20:57:52 +0000 (13:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 May 2025 09:24:18 +0000 (10:24 +0100)
commit350d4546295949c8a29e345b340e57772813037a
tree9305d3c3f14d50368421be8a0321cb9f69cbb4bb
parentea15e046263b19e91ffd827645ae5dfa44ebd044
af_unix: Factorise test_bit() for SOCK_PASSCRED and SOCK_PASSPIDFD.

Currently, the same checks for SOCK_PASSCRED and SOCK_PASSPIDFD
are scattered across many places.

Let's centralise the bit tests to make the following changes cleaner.

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