Support unix domain sockets across namespaces
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 20 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | scm: Reorder scm_cookie.include/ | +1 | 1 reply | |
| 2/8 | user_ns: Introduce user_nsmap_uid and user_ns_map_gid.include/ kernel/ | +58 | 3 replies | |
| 3/8 | sock: Introduce cred_to_ucredinclude/ net/ | +19 | 1 reply | |
| 4/8 | af_unix: Allow SO_PEERCRED to work across namespaces.include/ net/ net/ | +42 | 2 replies | |
| 5/8 | af_netlink: Add needed scm_destroy after scm_send.net/ | +8 | 2 replies | |
| 6/8 | scm: Capture the full credentials of the scm sender.include/ net/ | +48 | 5 replies | |
| 7/8 | af_unix: Allow credentials to work across user and pid namespaces.include/ net/ | +33 | 1 reply | |
| 8/8 | af_unix: Allow connecting to sockets in other network namespaces.net/ | +2 | 2 replies |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by.
| Patch | Daniel Lezcano | Pavel Emelyanov | Serge E. Hallyn |
|---|---|---|---|
| 1/8 | A-b | ||
| 2/8 | A-b | ||
| 3/8 | A-b | ||
| 4/8 | A-b | A-b | |
| 5/8 | R-b | A-b | |
| 6/8 | A-b | ||
| 7/8 | A-b | ||
| 8/8 | A-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 0/8] Support unix domain sockets across namespaces
This patchset takes a addressing all of the issues that crop up with unix domain sockets when the senders and receivers are in separate namespaces.
Without this patchset we can report the wrong pid and uid values in our unix domain credentials.
As a finally this patchset removes the now unnecessary restriction that we only allow unix domain sockets between processes in the same network namespace.
Eric W. Biederman (8):
scm: Reorder scm_cookie.
user_ns: Introduce user_nsmap_uid and user_ns_map_gid.
sock: Introduce cred_to_ucred
af_unix: Allow SO_PEERCRED to work across namespaces.
af_netlink: Add needed scm_destroy after scm_send.
scm: Capture the full credentials of the scm sender.
af_unix: Allow credentials to work across user and pid namespaces.
af_unix: Allow connecting to sockets in other network namespaces.
--- include/linux/socket.h | 5 ++ include/linux/user_namespace.h | 14 ++++++ include/net/af_unix.h | 4 +- include/net/scm.h | 30 ++++++++++-- include/net/sock.h | 3 +- kernel/user_namespace.c | 44 ++++++++++++++++++ net/core/scm.c | 24 ++++++++++ net/core/sock.c | 32 +++++++++++--- net/netlink/af_netlink.c | 11 +++- net/unix/af_unix.c | 97 +++++++++++++++++++++++++--------------- 10 files changed, 211 insertions(+), 53 deletions(-)