diff options
| author | Lorenzo Colitti <lorenzo@google.com> | 2016-08-24 15:46:26 +0900 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:57:35 +0200 |
| commit | 97c4ac5df7dc16baad461a84b5826503bf391537 (patch) | |
| tree | 8a2bc49b8e8003e39c6ce11dd7598b68074e019a /include/linux/timer.h | |
| parent | e2c138779969ffafe92ef46cd36af6f05e3f4b46 (diff) | |
net: diag: allow socket bytecode filters to match socket marks
This allows a privileged process to filter by socket mark when
dumping sockets via INET_DIAG_BY_FAMILY. This is useful on
systems that use mark-based routing such as Android.
The ability to filter socket marks requires CAP_NET_ADMIN, which
is consistent with other privileged operations allowed by the
SOCK_DIAG interface such as the ability to destroy sockets and
the ability to inspect BPF filters attached to packet sockets.
[backport of net-next a52e95abf772b43c9226e9a72d3c1353903ba96f]
Change-Id: If4609026882ef283a619b8bf24c0127f1f18ce6a
Tested: https://android-review.googlesource.com/261350
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/timer.h')
0 files changed, 0 insertions, 0 deletions
