tcp: don't require root to read tcp_metrics
authorBanerjee, Debabrata <dbanerje@akamai.com>
Wed, 30 Jul 2014 17:50:17 +0000 (13:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Jul 2014 21:07:37 +0000 (14:07 -0700)
commit388070faa1e1f6138c1ea0e82271c7ecb3f36477
tree1b6a1c962cee7330fe2c4e13cd11f628c9168b50
parent2b391ee2cae3945832011970bede35dab885879d
tcp: don't require root to read tcp_metrics

commit d23ff7016 (tcp: add generic netlink support for tcp_metrics) introduced
netlink support for the new tcp_metrics, however it restricted getting of
tcp_metrics to root user only. This is a change from how these values could
have been fetched when in the old route cache. Unless there's a legitimate
reason to restrict the reading of these values it would be better if normal
users could fetch them.

Cc: Julian Anastasov <ja@ssi.bg>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Debabrata Banerjee <dbanerje@akamai.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_metrics.c