[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1366896111-4436-1-git-send-email-nicolas.dichtel@6wind.com>
Date: Thu, 25 Apr 2013 15:21:47 +0200
From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
To: davem@...emloft.net
Cc: xiyou.wangcong@...il.com, eric.dumazet@...il.com,
netdev@...r.kernel.org
Subject: [PATCH net-next v3 0/4] sock_diag: monitor packet sockets
The goal of this patchset is to be able to monitor packet sockets.
The two first patches add new attributes for packet_diag subsystem, so that all
information exported via the /proc/net/packet are also exported via netlink.
The third patch avoid to disclose socket pointer to all user. Via the /proc,
kptr_restrict is used.
The last patch allows allowed users to get details about filter attached to a
packet socket.
As usual, the patch against iproute2 will be sent once the patches are included
and net-next merged. I can send it on demand.
v2: add sock_diag_notify_del() to avoid confusion of the meaning of the second
arg of __sock_diag_notify()
enhance commitlog of patch 3/5
v3: drop previous 4/5 and 5/5 patches
add patch 3/4 (sock_diag: do not disclose sock ptr to all users)
disclose filters only to allowed users
include/linux/sock_diag.h | 5 ++++-
include/uapi/linux/packet_diag.h | 5 +++++
net/core/sock_diag.c | 45 +++++++++++++++++++++++++++++++++++++---
net/ipv4/inet_diag.c | 13 +++++++-----
net/netlink/diag.c | 5 ++++-
net/packet/diag.c | 29 ++++++++++++++++++++------
net/unix/diag.c | 14 ++++++++-----
7 files changed, 95 insertions(+), 21 deletions(-)
Comments are welcome.
Regards,
Nicolas
--
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