diff options
Diffstat (limited to 'net/ipv4/tcp_cong.c')
-rw-r--r-- | net/ipv4/tcp_cong.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/tcp_cong.c b/net/ipv4/tcp_cong.c index 1432cdb0644c..291f2ed7cc31 100644 --- a/net/ipv4/tcp_cong.c +++ b/net/ipv4/tcp_cong.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Plugable TCP congestion control support and newReno | 2 | * Plugable TCP congestion control support and newReno |
3 | * congestion control. | 3 | * congestion control. |
4 | * Based on ideas from I/O scheduler suport and Web100. | 4 | * Based on ideas from I/O scheduler support and Web100. |
5 | * | 5 | * |
6 | * Copyright (C) 2005 Stephen Hemminger <shemminger@osdl.org> | 6 | * Copyright (C) 2005 Stephen Hemminger <shemminger@osdl.org> |
7 | */ | 7 | */ |
@@ -259,7 +259,8 @@ int tcp_set_congestion_control(struct sock *sk, const char *name) | |||
259 | if (!ca) | 259 | if (!ca) |
260 | err = -ENOENT; | 260 | err = -ENOENT; |
261 | 261 | ||
262 | else if (!((ca->flags & TCP_CONG_NON_RESTRICTED) || capable(CAP_NET_ADMIN))) | 262 | else if (!((ca->flags & TCP_CONG_NON_RESTRICTED) || |
263 | ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN))) | ||
263 | err = -EPERM; | 264 | err = -EPERM; |
264 | 265 | ||
265 | else if (!try_module_get(ca->owner)) | 266 | else if (!try_module_get(ca->owner)) |