ulog: remove input plugin
PATCH 1/2 ulog: remove input plugin
The ULOG target was removed from the linux kernel with 7200135bc1e6 ("netfilter: kill ulog targets") aka v3.17, so remove the input plugin for it. It's successor NFLOG should be used instead, which has its own input plugin.
--- README | 1 - TODO | 1 - configure.ac | 8 - doc/ulogd.sgml | 87 +------- filter/ulogd_filter_HWHDR.c | 4 - include/ulogd/ulogd.h | 3 +- input/packet/Makefile.am | 8 - input/packet/ulogd_inppkt_ULOG.c | 332 ------------------------------- ulogd.8 | 2 +- ulogd.conf.in | 9 - 10 files changed, 3 insertions(+), 452 deletions(-) delete mode 100644 input/packet/ulogd_inppkt_ULOG.c
README +0 -1
@@ -10,7 +10,6 @@ in the doc/ subdirectory. This packages is intended for doing all netfilter related logging inside a userspace process. This includes - - logging of ruleset violations via ipt_ULOG (kernel 2.4.18+) - logging of ruleset violations via nfnetlink_log (kernel 2.6.14+) - logging of connection startup/teardown (kernel 2.6.14+) - connection-based accounting (kernel 2.6.14+)
TODO +0 -1
@@ -1,4 +1,3 @@ - add support for capabilities to run as non-root - support for static linking -- issues with ulogd_BASE and partially copied packets (--ulog-cprange) - problem wrt. ulogd_BASE and fragments
configure.ac +0 -8
@@ -37,13 +37,6 @@ AC_CHECK_FUNCS([socket strerror]) AC_SEARCH_LIBS([pthread_create], [pthread], [libpthread_LIBS="$LIBS"; LIBS=""]) AC_SUBST([libpthread_LIBS]) -AC_ARG_ENABLE([ulog], - [AS_HELP_STRING([--enable-ulog], [Enable ulog module [default=yes]])], - [enable_ulog=$enableval], - [enable_ulog=yes]) -AS_IF([test "x$enable_ulog" != "xyes"], [enable_ulog=no]) -AM_CONDITIONAL([BUILD_ULOG], [test "x$enable_ulog" = "xyes"]) - dnl Check for the right nfnetlink version PKG_CHECK_MODULES([LIBNFNETLINK], [libnfnetlink >= 1.0.1])
@@ -297,7 +290,6 @@ Ulogd configuration: NFLOG plugin: ${enable_nflog} NFCT plugin: ${enable_nfct} NFACCT plugin: ${enable_nfacct} - ULOG plugin: ${enable_ulog} Output plugins: PCAP plugin: ${enable_pcap} PGSQL plugin: ${enable_pgsql}
doc/ulogd.sgml +1 -86
111 lines not on this page · raw message
filter/ulogd_filter_HWHDR.c +0 -4
@@ -198,11 +198,7 @@ static int interp_mac2str(struct ulogd_pluginstance *pi)return ULOGD_IRET_ERR ;if (pp_is_valid (inp,KEY_RAW_TYPE )) -/* NFLOG with Linux >= 2.6.27 case */ type =ikey_get_u16 (&inp[KEY_RAW_TYPE ]); -else if (ikey_get_u16 (&inp[KEY_RAW_MACLEN ]) ==ETH_HLEN ) -/* ULOG case, treat ethernet encapsulation */ - type =ARPHRD_ETHER ;else type =ARPHRD_VOID ;
include/ulogd/ulogd.h +1 -2
@@ -2,8 +2,7 @@#define _ULOGD_H/* ulogd * -* userspace logging daemon for netfilter ULOG target -* of the linux 2.4/2.6 netfilter subsystem. +* Userspace logging daemon for netfilter/iptables * * (C) 2000-2005 by Harald Welte <[email protected]> *
input/packet/Makefile.am +0 -8
@@ -7,14 +7,6 @@ pkglib_LTLIBRARIES = ulogd_inppkt_UNIXSOCK.la ulogd_inppkt_UNIXSOCK_la_SOURCES = ulogd_inppkt_UNIXSOCK.c ulogd_inppkt_UNIXSOCK_la_LDFLAGS = -avoid-version -module -if BUILD_ULOG -pkglib_LTLIBRARIES += ulogd_inppkt_ULOG.la - -ulogd_inppkt_ULOG_la_SOURCES = ulogd_inppkt_ULOG.c -ulogd_inppkt_ULOG_la_LDFLAGS = -avoid-version -module -ulogd_inppkt_ULOG_la_LIBADD = ../../libipulog/libipulog.la -endif - if BUILD_NFLOG pkglib_LTLIBRARIES += ulogd_inppkt_NFLOG.la
input/packet/ulogd_inppkt_ULOG.c deleted +0 -332
332 lines not on this page · raw message
ulogd.8 +1 -1
@@ -26,7 +26,7 @@ connection tracking, the Netfilter packet logging subsystem and from the Netfilter accounting subsystem. You have to enable support for connection tracking event delivery; ctnetlink and the NFLOG target in your Linux kernel 2.6.x or load their respective modules. The deprecated -ULOG target (which has been superseded by NFLOG) is also +ULOG target (which has been superseded by NFLOG) is no longer supported. .PP The received messages can be logged into files or into a mySQL, sqlite3
ulogd.conf.in +0 -9
@@ -26,7 +26,6 @@ logfile="/var/log/ulogd.log" # 2. options for each plugin in seperate section below #plugin="@pkglibdir@/ulogd_inppkt_NFLOG.so" -#plugin="@pkglibdir@/ulogd_inppkt_ULOG.so" #plugin="@pkglibdir@/ulogd_inppkt_UNIXSOCK.so" #plugin="@pkglibdir@/ulogd_inpflow_NFCT.so" #plugin="@pkglibdir@/ulogd_filter_IFINDEX.so"
@@ -58,9 +57,6 @@ logfile="/var/log/ulogd.log" # this is a stack for packet-based logging via LOGEMU #stack=log2:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU -# this is a stack for ULOG packet-based logging via LOGEMU -#stack=ulog1:ULOG,base1:BASE,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU - # this is a stack for packet-based logging via LOGEMU with filtering on MARK #stack=log2:NFLOG,base1:BASE,mark1:MARK,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU
@@ -175,11 +171,6 @@ numeric_label=1 # you can label the log info based on the packet verdict #netlink_socket_buffer_maxsize=1085440 #bind=1 -[ulog1] -# netlink multicast group (the same as the iptables --ulog-nlgroup param) -nlgroup=1 -#numeric_label=0 # optional argument - [nuauth1] socket_path="/tmp/nuauth_ulogd2.sock"
--
2.49.0
PATCH 2/2 ulogd: remove libipulog
The ULOG target was removed from linux kernel with 7200135bc1e6 ("netfilter: kill ulog targets") aka v3.17, so remove the userspace library for it. libnetfilter_log provides the same functionality for NFLOG, and also a compatibility layer to use NFLOG through the libipulog api.
--- Makefile.am | 2 +- configure.ac | 3 - include/Makefile.am | 2 +- include/libipulog/Makefile.am | 1 - include/libipulog/libipulog.h | 57 ----- include/linux/Makefile.am | 3 +- include/linux/netfilter_ipv4/Makefile.am | 1 - include/linux/netfilter_ipv4/ipt_ULOG.h | 49 ----- libipulog/Makefile.am | 5 - libipulog/libipulog.c | 260 ----------------------- libipulog/ulog_test.c | 83 -------- 11 files changed, 3 insertions(+), 463 deletions(-) delete mode 100644 include/libipulog/Makefile.am delete mode 100644 include/libipulog/libipulog.h delete mode 100644 include/linux/netfilter_ipv4/Makefile.am delete mode 100644 include/linux/netfilter_ipv4/ipt_ULOG.h delete mode 100644 libipulog/Makefile.am delete mode 100644 libipulog/libipulog.c delete mode 100644 libipulog/ulog_test.c
Makefile.am +1 -1
@@ -1,4 +1,4 @@ -SUBDIRS = include libipulog src input filter output +SUBDIRS = include src input filter output ACLOCAL_AMFLAGS = -I m4
configure.ac +0 -3
@@ -246,16 +246,13 @@ AC_CONFIG_FILES([Makefile filter/Makefile filter/raw2packet/Makefile include/Makefile - include/libipulog/Makefile include/linux/Makefile include/linux/netfilter/Makefile - include/linux/netfilter_ipv4/Makefile include/ulogd/Makefile input/Makefile input/flow/Makefile input/packet/Makefile input/sum/Makefile - libipulog/Makefile output/Makefile output/dbi/Makefile output/ipfix/Makefile
include/Makefile.am +1 -1
@@ -1 +1 @@ -SUBDIRS = ulogd libipulog linux +SUBDIRS = ulogd linux
include/libipulog/Makefile.am deleted +0 -1
@@ -1 +0,0 @@ -noinst_HEADERS = libipulog.h
include/libipulog/libipulog.h deleted +0 -57
57 lines not on this page · raw message
include/linux/Makefile.am +1 -2
@@ -1,2 +1 @@ -SUBDIRS = netfilter \ - netfilter_ipv4 +SUBDIRS = netfilter
include/linux/netfilter_ipv4/Makefile.am deleted +0 -1
@@ -1 +0,0 @@ -noinst_HEADERS = ipt_ULOG.h
include/linux/netfilter_ipv4/ipt_ULOG.h deleted +0 -49
49 lines not on this page · raw message
libipulog/Makefile.am deleted +0 -5
@@ -1,5 +0,0 @@ -include $(top_srcdir)/Make_global.am - -noinst_LTLIBRARIES = libipulog.la - -libipulog_la_SOURCES = libipulog.c
libipulog/libipulog.c deleted +0 -260
260 lines not on this page · raw message
libipulog/ulog_test.c deleted +0 -83
83 lines not on this page · raw message
--
2.49.0
Florian Westphal
maintainerQuoted 4 lines · Corubba Smith
The ULOG target was removed from the linux kernel with
7200135bc1e6("netfilter: kill ulog targets") aka v3.17, so remove the input plugin for it. It's successor NFLOG should be used instead, which has its own input plugin.
Your email client is reformattig parts of the diff:
% git am ~/Downloads/ulogd2-1-2-ulog-remove-input-plugin.patch
Applying: ulog: remove input plugin
error: patch failed: doc/ulogd.sgml:132
error: doc/ulogd.sgml: patch does not apply
Patch failed at 0001 ulog: remove input plugin
hint: Use 'git am --show-current-patch=diff' to see the failed patch
https://patchwork.ozlabs.org/project/netfilter-devel/patch/[email protected]/
Can you send the pach to yourself and make sure "git am" can apply it again?
Thanks.
Florian Westphal
maintainerQuoted 6 lines · Florian Westphal
Quoted 4 lines · Corubba Smith
The ULOG target was removed from the linux kernel with
7200135bc1e6("netfilter: kill ulog targets") aka v3.17, so remove the input plugin for it. It's successor NFLOG should be used instead, which has its own input plugin.
Quoted 7 lines
Your email client is reformattig parts of the diff:
% git am~/Downloads/ulogd2-1-2-ulog-remove-input-plugin.patch
Applying: ulog: remove input plugin
error: patch failed: doc/ulogd.sgml:132
error: doc/ulogd.sgml: patch does not apply
Patch failed at 0001 ulog: remove input plugin
hint: Use 'git am --show-current-patch=diff' to see the failed patch
I resolved the conflicts locally and applied the patches, please double check that I did not miss anything.
Quoted 4 lines
https://patchwork.ozlabs.org/project/netfilter-devel/patch/[email protected]/
Can you send the pach to yourself and make sure "git am" can apply it again?
FWIW, it looks like something in the delivery path removes trailing spaces, turning "some line \n" into "some line\n" which will make git-am fail as intree and diff don't match.
Quoted 18 lines · Florian Westphal
Quoted 6 lines · Florian Westphal
Quoted 4 lines · Corubba Smith
The ULOG target was removed from the linux kernel with
7200135bc1e6("netfilter: kill ulog targets") aka v3.17, so remove the input plugin for it. It's successor NFLOG should be used instead, which has its own input plugin.Quoted 7 lines
Your email client is reformattig parts of the diff:
% git am~/Downloads/ulogd2-1-2-ulog-remove-input-plugin.patch
Applying: ulog: remove input plugin
error: patch failed: doc/ulogd.sgml:132
error: doc/ulogd.sgml: patch does not apply
Patch failed at 0001 ulog: remove input plugin
hint: Use 'git am --show-current-patch=diff' to see the failed patchI resolved the conflicts locally and applied the patches, please double check that I did not miss anything.
Quoted 9 lines
Quoted 4 lines
https://patchwork.ozlabs.org/project/netfilter-devel/patch/[email protected]/
Can you send the pach to yourself and make sure "git am" can apply it again?
FWIW, it looks like something in the delivery path removes trailing spaces, turning "some line \n" into "some line\n" which will make git-am fail as intree and diff don't match.
It appears that my mail provider *sometimes* converts to a different Content-Transfer-Encoding, and in the process removes trailing whitespace. Apologies for that, and thank you for the feedback as well as resolving it on your end. I will look into preventing that from happening again.
git diff HEAD..origin/master shows no difference between my original local branch and the updated remote branch, so from my point of view the patchset was applied as intended and there's nothing missing or extra.