This adds the capability for a process that has CAP_NET_ADMIN on a socket to see the socket mark in socket dumps. Commit a52e95abf772 ("net: diag: allow socket bytecode filters to match socket marks") recently gave privileged processes the ability to filter socket dumps based on mark. This patch is complementary: it ensures that the mark is also passed to userspace in the socket's netlink attributes. It is useful for tools like ss which display information about sockets.
Showing the changes to include/uapi/linux (1 of 5 files). Show all
Unified · Split
| @@ -123,6 +123,7 @@ enum { · 122 unmodified lines | ||
| 123 | 123 | INET_DIAG_LOCALS, |
| 124 | 124 | INET_DIAG_PEERS, |
| 125 | 125 | INET_DIAG_PAD, |
| 126 | + INET_DIAG_MARK, | |
| 126 | 127 | __INET_DIAG_MAX, |
| 127 | 128 | }; |
| 128 | 129 | |