vsock: fix child netns mode initialization and restriction
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | vsock: fix child netns mode initializationnet/ | +3 | 1 reply | Applied |
| 2/2 | vsock: prevent child netns mode switch from local to globalnet/ | +12 | 1 reply | Applied |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Bobby Eshleman |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net 0/2] vsock: fix child netns mode initialization and restriction
This series fixes two issues in the vsock network namespace support recently introduced by commit eafb64f40ca4 ("vsock: add netns to vsock core").
Patch 1 fixes child_ns_mode being always hardcoded to "global" for new namespaces, breaking propagation of the "local" mode through nested namespaces.
Patch 2 prevents a "local" namespace from switching child_ns_mode to "global", which would allow nested namespaces to escape vsock isolation and access global CIDs.
Stefano Garzarella (2):
vsock: fix child netns mode initialization
vsock: prevent child netns mode switch from local to global
net/vmw_vsock/af_vsock.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-)
Signature · 1 line
2.53.0