diff options
author | Banerjee, Debabrata <dbanerje@akamai.com> | 2014-07-30 19:50:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-31 23:07:37 +0200 |
commit | 388070faa1e1f6138c1ea0e82271c7ecb3f36477 (patch) | |
tree | 1b6a1c962cee7330fe2c4e13cd11f628c9168b50 /net/ipv4/tcp_metrics.c | |
parent | team: fix releasing uninitialized pointer to BPF prog (diff) | |
download | linux-388070faa1e1f6138c1ea0e82271c7ecb3f36477.tar.xz linux-388070faa1e1f6138c1ea0e82271c7ecb3f36477.zip |
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>
Diffstat (limited to 'net/ipv4/tcp_metrics.c')
-rw-r--r-- | net/ipv4/tcp_metrics.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/tcp_metrics.c b/net/ipv4/tcp_metrics.c index 4fe041805989..0d54e59b9ea8 100644 --- a/net/ipv4/tcp_metrics.c +++ b/net/ipv4/tcp_metrics.c @@ -1093,7 +1093,6 @@ static const struct genl_ops tcp_metrics_nl_ops[] = { .doit = tcp_metrics_nl_cmd_get, .dumpit = tcp_metrics_nl_dump, .policy = tcp_metrics_nl_policy, - .flags = GENL_ADMIN_PERM, }, { .cmd = TCP_METRICS_CMD_DEL, |