Dumping AF_UNIX sockets via netlink
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest13 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | sock_diag: Move the SOCK_DIAG_BY_FAMILY cmd declarationinclude/ include/ | +3 | 0 replies | |
| 2/13 | sock_diag: Fix module netlink aliasesnet/ net/ net/ +2 more | +10 | 0 replies | |
| 3/13 | sock_diag: Generalize requests cookies managementsinclude/ include/ net/ +2 more | +27 | 0 replies | |
| 4/13 | af_unix: Export stuff required for diag moduleinclude/ net/ | +9 | 0 replies | |
| 5/13 | unix_diag: Basic module skeletoninclude/ net/ | +81 | 0 replies | |
| 6/13 | unix_diag: Dumping all sockets corenet/ | +75 | 0 replies | |
| 7/13 | unix_diag: Dumping exact socket corenet/ | +66 | 0 replies | |
| 8/13 | unix_diag: Unix socket name NLAinclude/ net/ | +28 | 0 replies | |
| 9/13 | unix_diag: Unix inode info NLAinclude/ net/ | +28 | 0 replies | |
| 10/13 | unix_diag: Unix peer inode NLAinclude/ net/ | +26 | 0 replies | |
| 11/13 | unix_diag: Pending connections IDs NLAinclude/ net/ | +41 | 0 replies | |
| 12/13 | unix_diag: Receive queue lenght NLAinclude/ net/ | +15 | 0 replies | |
| 13/13 | unix_diag: Write it into kbuildnet/ net/ | +10 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/13] Dumping AF_UNIX sockets via netlink
Make the unix_diag.ko module, which is the AF_UNIX client for the sock_diag.
Use the sock_i_ino() as the primary ID key for sockets. This is currently the only unique (except for the sk address itself) ID of a unix socket and is de facto used in the ss tool to identify sockets. Thus the basic nlk request and response structures operate on this ID. Other socket info (sun_name, peer, etc.) are reported in the respective NLA-s (patches 8 through 12).
There's a locking trickery in patch #11. I've tried to study it carefully and checked with lockdep, but anyway, please, pay special attention to it.
The patch for ss tool is also included.
Signed-off-by Pavel Emelyanov <[email protected]>