From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Florian Westphal <fw@strlen.de>
Cc: Phil Oester <kernel@linuxace.com>, netfilter-devel@vger.kernel.org
Subject: Re: [PATCH] iptables: Fix connlabel.conf install location
Date: Wed, 3 Jul 2013 02:13:05 +0200 [thread overview]
Message-ID: <20130703001305.GA8652@localhost> (raw)
In-Reply-To: <20130625195200.GB28818@breakpoint.cc>
On Tue, Jun 25, 2013 at 09:52:00PM +0200, Florian Westphal wrote:
> Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> > On Wed, Jun 12, 2013 at 12:06:05PM +0200, Florian Westphal wrote:
> > > Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> > > > > I think this is still useful for people cross-compiling and installing
> > > > > iptables in some custom location.
> > > >
> > > > Hm, still, this may confuse people, as xt_connlabel always looks at:
> > > >
> > > > #define CONNLABEL_CFG "/etc/xtables/connlabel.conf"
> > >
> > > Right; this is easily fixable. However, this is also
> > > the default in libnetfilter_conntrack. But lnf-ct wont be
> > > able to know what configure options iptables was built with.
> >
> > We can define the default location in libnetfilter_conntrack.h, eg.
> >
> > #define NFCT_CONNLABEL_CFG "/etc/xtables/connlabel.conf"
>
> Sure, I can move the definition from conntrack/labels.c
> to a public header.
>
> > I think connlabel is not of much use without libnetfilter_conntrack,
> > since it provides the translation of the connlabel mapping. So we can
> > conditionally compile connlabel support if libnetfilter_conntrack is
> > installed. We can make it a soft dependency, ie. no need for
> > --enable-connlabel.
>
> Hrm, the iptables connlabel extension currently parses the labels
> config itself.
>
> What we can do is to add soft dependency in iptables for
> libnetfilter_conntrack, build the connlabel extension
> conditionally and then remove the default file from iptables.
>
> Is that what you have in mind?
Yes. BTW, you could simplify the existing iptables extension by using
the connlabel API provided by libnetfilter_conntrack.
I think you can also add --with-libnfct=PATH for people that want to
place the library somewhere in the tree, not the standard location.
Thanks.
next prev parent reply other threads:[~2013-07-03 0:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-10 9:35 [PATCH] iptables: Fix connlabel.conf install location Phil Oester
2013-06-12 7:51 ` Florian Westphal
2013-06-12 8:50 ` Pablo Neira Ayuso
2013-06-12 9:08 ` Pablo Neira Ayuso
2013-06-12 10:06 ` Florian Westphal
2013-06-25 16:01 ` Pablo Neira Ayuso
2013-06-25 19:52 ` Florian Westphal
2013-07-03 0:13 ` Pablo Neira Ayuso [this message]
2013-06-12 8:04 ` Pablo Neira Ayuso
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=20130703001305.GA8652@localhost \
--to=pablo@netfilter.org \
--cc=fw@strlen.de \
--cc=kernel@linuxace.com \
--cc=netfilter-devel@vger.kernel.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).