Lorenzo Colitti d545caca82 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.

Tested: https://android-review.googlesource.com/270210
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-09-08 16:13:09 -07:00
..
2016-01-27 20:36:15 +08:00
2016-07-11 13:25:39 -07:00
2013-12-06 12:37:56 -05:00
2016-08-19 17:09:42 -07:00
2016-04-15 17:29:36 -04:00
2016-06-03 19:37:21 -04:00
2016-07-16 22:02:09 -07:00
2016-07-11 13:25:39 -07:00
2013-12-06 12:37:56 -05:00
2013-12-06 12:37:56 -05:00