From: Daniel Mack <daniel@zonque.org>
To: pablo@netfilter.org
Cc: fw@strlen.de, daniel@iogearbox.net, a.perevalov@samsung.com,
netfilter-devel@vger.kernel.org, Daniel Mack <daniel@zonque.org>
Subject: [PATCH nf-next 0/3] netfilter: socket lookup function refactoring, cgroup match fixes
Date: Wed, 17 Jun 2015 02:08:09 +0200 [thread overview]
Message-ID: <1434499692-9832-1-git-send-email-daniel@zonque.org> (raw)
This series is based on work done by Daniel Borkmann a little while ago:
http://article.gmane.org/gmane.comp.security.firewalls.netfilter.devel/56877
I addressed the feedback from that thread and factored out the socket
lookup code into own modules, one for ipv4, one for ipv6. These modules
are now selected in kbuild by code that uses it.
Also, a patch was added to fix nft_meta cgroup match rules in a similar
fashion as it's now done for xt_cgroup.
Feedback welcome!
Thanks,
Daniel
Daniel Borkmann (1):
netfilter: x_tables: fix cgroup's NF_INET_LOCAL_IN sk lookups
Daniel Mack (2):
netfilter: factor out helpers from xt_socket into separate modules
netfilter: nft_meta: fix cgroup socket lookups
include/linux/netfilter_ipv4.h | 6 +
include/linux/netfilter_ipv6.h | 5 +
net/ipv4/netfilter/Makefile | 3 +
net/ipv4/netfilter/nf_sock_ipv4.c | 169 +++++++++++++++++++++++
net/ipv6/netfilter/Makefile | 3 +
net/ipv6/netfilter/nf_sock_ipv6.c | 152 +++++++++++++++++++++
net/netfilter/Kconfig | 12 ++
net/netfilter/nft_meta.c | 35 ++++-
net/netfilter/xt_cgroup.c | 95 ++++++++++---
net/netfilter/xt_socket.c | 278 ++------------------------------------
10 files changed, 467 insertions(+), 291 deletions(-)
create mode 100644 net/ipv4/netfilter/nf_sock_ipv4.c
create mode 100644 net/ipv6/netfilter/nf_sock_ipv6.c
--
2.4.0
next reply other threads:[~2015-06-17 0:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-17 0:08 Daniel Mack [this message]
2015-06-17 0:08 ` [PATCH nf-next 1/3] netfilter: factor out helpers from xt_socket into separate modules Daniel Mack
2015-06-17 0:08 ` [PATCH nf-next 2/3] netfilter: x_tables: fix cgroup's NF_INET_LOCAL_IN sk lookups Daniel Mack
2015-06-17 0:08 ` [PATCH nf-next 3/3] netfilter: nft_meta: fix cgroup socket lookups Daniel Mack
2015-06-17 1:03 ` [PATCH nf-next 0/3] netfilter: socket lookup function refactoring, cgroup match fixes Pablo Neira Ayuso
2015-06-17 9:06 ` Daniel Mack
2015-06-17 10:34 ` Pablo Neira Ayuso
2015-06-17 11:28 ` Daniel Borkmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1434499692-9832-1-git-send-email-daniel@zonque.org \
--to=daniel@zonque.org \
--cc=a.perevalov@samsung.com \
--cc=daniel@iogearbox.net \
--cc=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).