diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2016-09-08 00:42:25 +0900 |
---|---|---|
committer | Ben Fennema <fennema@google.com> | 2017-01-17 15:30:31 -0800 |
commit | 3940a44ec77eb4f7524dd6fcb5047f040ea1ead5 (patch) | |
tree | 2aa009a66979c7c3c60d13d0b27a6ebe3782fcdf /net/ipv6/udp.c | |
parent | 3ffedea4659c23e747f1f266d93770e1cc5d838d (diff) | |
download | mediatek-3940a44ec77eb4f7524dd6fcb5047f040ea1ead5.tar.gz |
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.
[backport of net-next d545caca827b65aab557a9e9dcdcf1e5a3823c2d]
Change-Id: I0c9708aae5ab8dfa296b8a1e6aecceb2a382415a
Tested: https://android-review.googlesource.com/270210
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
0 files changed, 0 insertions, 0 deletions