diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2016-08-24 15:46:26 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2016-09-19 01:51:21 +0900 |
commit | ecd02bbc43641454b940fcf9c16b39ab8179af67 (patch) | |
tree | 5744a66093de526fb7290e856248da9bfc09b1ba /net/ipv4/udp.c | |
parent | 5bd0c83ba48ce73eb89bd4308b07a263a07dd21e (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.
[cherry-pick of a52e95abf772b43c9226e9a72d3c1353903ba96f]
Change-Id: I8b90b814264d9808bda050cdba8f104943bdb9a8
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 'net/ipv4/udp.c')
0 files changed, 0 insertions, 0 deletions