# Re: \[PATCH net-next 0/3\] vsock: support network namespace

- From: Stefan Hajnoczi \<stefanha@redhat.com\>
- Date: 2020-01-21 15:51:05 
- List: netdev
- Page: https://ratatoskr.run/netdev/2020/01/5838645
- Thread: https://ratatoskr.run/netdev/2020/01/5834292/t.md

```text
What should vsock_dev_do_ioctl() IOCTL_VM_SOCKETS_GET_LOCAL_CID return?
The answer is probably dependent on the caller's network namespace.

Ultimately we may need per-namespace transports.  Imagine assigning a
G2H transport to a specific network namespace.

vsock_stream_connect() needs to be namespace-aware so that other
namespaces cannot use the G2H transport to send a connection
establishment packet.
```

## Attachments

- [signature.asc](https://ratatoskr.run/netdev/2020/01/5838645/attachment/0) (application/pgp-signature, 488 bytes)
