Home
last modified time | relevance | path

Searched refs:SOCK_PASSCRED (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/include/net/
Dscm.h117 if (test_bit(SOCK_PASSCRED, &sock->flags) || scm->fp) in scm_recv()
123 if (test_bit(SOCK_PASSCRED, &sock->flags)) { in scm_recv()
/Linux-v4.19/net/unix/
Daf_unix.c1120 if (test_bit(SOCK_PASSCRED, &sock->flags) && in unix_dgram_connect()
1221 if (test_bit(SOCK_PASSCRED, &sock->flags) && !u->addr && in unix_stream_connect()
1400 if (test_bit(SOCK_PASSCRED, &old->flags)) in unix_sock_inherit_flags()
1401 set_bit(SOCK_PASSCRED, &new->flags); in unix_sock_inherit_flags()
1567 return test_bit(SOCK_PASSCRED, &sock->flags) || in unix_passcred_enabled()
1569 test_bit(SOCK_PASSCRED, &other->sk_socket->flags); in unix_passcred_enabled()
1660 if (test_bit(SOCK_PASSCRED, &sock->flags) && !u->addr in unix_dgram_sendmsg()
2351 } else if (test_bit(SOCK_PASSCRED, &sock->flags)) { in unix_stream_read_generic()
/Linux-v4.19/include/linux/
Dnet.h44 #define SOCK_PASSCRED 3 macro
/Linux-v4.19/net/core/
Dsock.c810 set_bit(SOCK_PASSCRED, &sock->flags); in sock_setsockopt()
812 clear_bit(SOCK_PASSCRED, &sock->flags); in sock_setsockopt()
1225 v.val = !!test_bit(SOCK_PASSCRED, &sock->flags); in sock_getsockopt()