[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1366904177.8964.155.camel@edumazet-glaptop>
Date: Thu, 25 Apr 2013 08:36:17 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Nicolas Dichtel <nicolas.dichtel@...nd.com>
Cc: davem@...emloft.net, xiyou.wangcong@...il.com,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next v3 3/4] sock_diag: do not disclose sock ptr to
all users
On Thu, 2013-04-25 at 08:32 -0700, Eric Dumazet wrote:
> Nack. This was already discussed in the past.
>
> Some people don't want to dump whole table, but use cookie to dump a
> particular socket.
For more details :
git grep -n sock_diag_check_cookie
include/linux/sock_diag.h:21:int sock_diag_check_cookie(void *sk, __u32 *cookie);
net/core/sock_diag.c:16:int sock_diag_check_cookie(void *sk, __u32 *cookie)
net/core/sock_diag.c:26:EXPORT_SYMBOL_GPL(sock_diag_check_cookie);
net/ipv4/inet_diag.c:312: err = sock_diag_check_cookie(sk, req->id.idiag_cookie);
net/ipv4/udp_diag.c:62: err = sock_diag_check_cookie(sk, req->id.idiag_cookie);
net/unix/diag.c:259: err = sock_diag_check_cookie(sk, req->udiag_cookie);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists