Lines Matching full:other
235 static bool sock_is_scoped(struct sock *const other, in sock_is_scoped() argument
241 lockdep_assert_held(&unix_sk(other)->lock); in sock_is_scoped()
242 dom_other = landlock_cred(other->sk_socket->file->f_cred)->domain; in sock_is_scoped()
266 struct sock *const other, in hook_unix_stream_connect() argument
278 if (!is_abstract_socket(other)) in hook_unix_stream_connect()
281 if (!sock_is_scoped(other, subject->domain)) in hook_unix_stream_connect()
289 .sk = other, in hook_unix_stream_connect()
298 struct socket *const other) in hook_unix_may_send() argument
310 * to other. in hook_unix_may_send()
312 if (unix_peer(sock->sk) == other->sk) in hook_unix_may_send()
315 if (!is_abstract_socket(other->sk)) in hook_unix_may_send()
318 if (!sock_is_scoped(other->sk, subject->domain)) in hook_unix_may_send()
326 .sk = other->sk, in hook_unix_may_send()