History

net: inet: diag: expose the socket mark to privileged processes.

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.

Lorenzo Colitti committed 10 years ago

Commit d545cac1 parent 74f13c85 files · +56 −28Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/linux/inet_diag.h+1−0
@@ -123,6 +123,7 @@ enum { · 122 unmodified lines
123123 INET_DIAG_LOCALS,
124124 INET_DIAG_PEERS,
125125 INET_DIAG_PAD,
126+ INET_DIAG_MARK,
126127 __INET_DIAG_MAX,
127128 };
128129

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t