]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
ulogd: add linux namespace helper
authorCorubba Smith <corubba@gmx.de>
Wed, 26 Mar 2025 23:06:18 +0000 (00:06 +0100)
committerFlorian Westphal <fw@strlen.de>
Tue, 20 May 2025 10:46:00 +0000 (12:46 +0200)
commitb039c9c9d2b8dcdd9accd1cba35a5119d48babf2
tree83f8c2880c122cd77cb65d1ac1d3603f650c6b17
parent1fe54ec39a071ea3b06e6883e542dfdcf40d2840
ulogd: add linux namespace helper

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>
Signed-off-by: Florian Westphal <fw@strlen.de>
configure.ac
include/ulogd/Makefile.am
include/ulogd/namespace.h [new file with mode: 0644]
src/Makefile.am
src/namespace.c [new file with mode: 0644]