Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1572359

Re: [PATCH nf-next v2] netfilter: allow logging from non-init namespaces

From Pablo Neira Ayuso <pablo@netfilter.org>
Newsgroups linux.kernel
Subject Re: [PATCH nf-next v2] netfilter: allow logging from non-init namespaces
Date 2017-02-02 14:30 +0100
Message-ID <t6pCy-4Bc-33@gated-at.bofh.it> (permalink)
References <t5D4S-7sP-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Jan 31, 2017 at 10:30:06AM +0100, Michal Kubecek wrote:
> Commit 69b34fb996b2 ("netfilter: xt_LOG: add net namespace support for
> xt_LOG") disabled logging packets using the LOG target from non-init
> namespaces. The motivation was to prevent containers from flooding
> kernel log of the host. The plan was to keep it that way until syslog
> namespace implementation allows containers to log in a safe way.
> 
> However, the work on syslog namespace seems to have hit a dead end
> somewhere in 2013 and there are users who want to use xt_LOG in all
> network namespaces. This patch allows to do so by setting
> 
>   /proc/sys/net/netfilter/nf_log_all_netns
> 
> to a nonzero value. This sysctl is only accessible from init_net so that
> one cannot switch the behaviour from inside a container.

Applied, thanks Michal!

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH nf-next v2] netfilter: allow logging from non-init namespaces Michal Kubecek <mkubecek@suse.cz> - 2017-01-31 10:40 +0100
  Re: [PATCH nf-next v2] netfilter: allow logging from non-init  namespaces Pablo Neira Ayuso <pablo@netfilter.org> - 2017-02-02 14:30 +0100

csiph-web