]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_log_syslog: Consolidate entry checks
authorPhil Sutter <phil@nwl.cc>
Thu, 24 Mar 2022 15:34:22 +0000 (16:34 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Apr 2022 12:36:06 +0000 (14:36 +0200)
commit627175ac149aeba56e8f442c26e18e5425e02697
treea9874d44a710e12392f92cc0bf257bcd5db45da2
parentaf1b1ba3ec3d8f3a4310cc7e170fdf5610236522
netfilter: nf_log_syslog: Consolidate entry checks

Every syslog logging callback has to perform the same check to cover for
rogue containers, introduce a helper for clarity. Drop the FIXME as
there is a viable solution since commit 0f63d79a89973 ("netfilter: allow
logging from non-init namespaces").

Suggested-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_log_syslog.c