From: Florian Westphal <fw@strlen.de>
To: Corubba Smith <corubba@gmx.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH ulogd2,v2 1/4] ulogd: add linux namespace helper
Date: Wed, 26 Mar 2025 20:23:43 +0100 [thread overview]
Message-ID: <20250326192343.GA2205@breakpoint.cc> (raw)
In-Reply-To: <c5cd1c3a-3875-4352-8181-5081103f96f6@gmx.de>
Corubba Smith <corubba@gmx.de> wrote:
> The new namespace helper provides an internal stable interface for
> plugins to use for switching various linux namespaces. Currently only
> network namespaces are supported/implemented, but can easily be extended
> if needed. autoconf will enable it automatically if the required symbols
> are available. If ulogd is compiled without namespace support, the
> functions will simply return an error, there is no need for conditional
> compilation or special handling in plugin code.
>
> Signed-off-by: Corubba Smith <corubba@gmx.de>
Looks good to me, I intend to apply this later this week unless
there are objections.
> and NFACCT plugins. I skipped ULOG because it's removed from the
> kernel since 7200135bc1e6 ("netfilter: kill ulog targets") aka v3.17
Yeah, ULOG code should just be axed, there is no point in carrying this
in the tree anymore.
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -6,6 +6,7 @@ AM_CPPFLAGS += -DULOGD_CONFIGFILE='"$(sysconfdir)/ulogd.conf"' \
>
> sbin_PROGRAMS = ulogd
>
> -ulogd_SOURCES = ulogd.c select.c timer.c rbtree.c conffile.c hash.c addr.c
> +ulogd_SOURCES = ulogd.c select.c timer.c rbtree.c conffile.c hash.c \
> + addr.c namespace.c
> ulogd_LDADD = ${libdl_LIBS} ${libpthread_LIBS}
> ulogd_LDFLAGS = -export-dynamic
> diff --git a/src/namespace.c b/src/namespace.c
> new file mode 100644
> index 0000000..f9f23d4
> --- /dev/null
> +++ b/src/namespace.c
> @@ -0,0 +1,237 @@
> +/* namespace helper
> + *
> + * userspace logging daemon for the netfilter subsystem
> + *
> + * (C) 2025 The netfilter project
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2
> + * as published by the Free Software Foundation.
I intend to replace all of this with
/* SPDX-License-Identifier: GPL-2.0 */
No need for license boilerplate, IMO.
next prev parent reply other threads:[~2025-03-26 19:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-25 1:05 [PATCH ulogd2,v2 1/4] ulogd: add linux namespace helper Corubba Smith
2025-03-25 1:07 ` [PATCH ulogd2,v2 2/4] nfct: add network namespace support Corubba Smith
2025-03-25 1:08 ` [PATCH ulogd2,v2 3/4] nflog: " Corubba Smith
2025-03-26 19:27 ` Florian Westphal
2025-03-25 1:09 ` [PATCH ulogd2,v2 4/4] nfacct: " Corubba Smith
2025-03-26 19:23 ` Florian Westphal [this message]
2025-04-10 20:02 ` [PATCH ulogd2,v2 1/4] ulogd: add linux namespace helper Corubba Smith
2025-04-11 20:06 ` Florian Westphal
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=20250326192343.GA2205@breakpoint.cc \
--to=fw@strlen.de \
--cc=corubba@gmx.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.