diff options
Diffstat (limited to 'net/ipv4/tcp.c')
| -rw-r--r-- | net/ipv4/tcp.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 4aefa0b42c2e..e6eace1c2bdb 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -2304,7 +2304,7 @@ void tcp_sock_destruct(struct sock *sk)  static inline bool tcp_can_repair_sock(const struct sock *sk)  { -	return capable(CAP_NET_ADMIN) && +	return ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN) &&  		((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_ESTABLISHED));  } | 
