Lines Matching defs:vsock
517 static bool vmci_transport_is_trusted(struct vsock_sock *vsock, u32 peer_cid)
519 return vsock->trusted ||
520 vmci_is_context_owner(peer_cid, vsock->owner->uid);
527 static bool vmci_transport_allow_dgram(struct vsock_sock *vsock, u32 peer_cid)
532 if (vsock->cached_peer != peer_cid) {
533 vsock->cached_peer = peer_cid;
534 if (!vmci_transport_is_trusted(vsock, peer_cid) &&
537 vsock->cached_peer_allow_dgram = false;
539 vsock->cached_peer_allow_dgram = true;
543 return vsock->cached_peer_allow_dgram;
557 * work if vsock is running in the host.
590 * if vsock is running in the host.
686 * that aren't vsock implementations.
1395 * linux vsock could have sent the bogus rst.