OpenCloudOS-Kernel/net
Michal Kubeček 2851940ffe netfilter: allow logging from non-init namespaces
Commit 69b34fb996 ("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.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2017-02-02 14:31:58 +01:00
..
6lowpan
9p
802
8021q
appletalk
atm
ax25
batman-adv
bluetooth
bridge netfilter: allow logging from non-init namespaces 2017-02-02 14:31:58 +01:00
caif
can ktime: Cleanup ktime_set() usage 2016-12-25 17:21:22 +01:00
ceph
core skbuff: add and use skb_nfct helper 2017-02-02 14:31:53 +01:00
dcb
dccp
decnet
dns_resolver
dsa net: dsa: Implement ndo_get_phys_port_id 2016-12-29 22:16:53 -05:00
ethernet
hsr
ieee802154
ipv4 netfilter: allow logging from non-init namespaces 2017-02-02 14:31:58 +01:00
ipv6 netfilter: allow logging from non-init namespaces 2017-02-02 14:31:58 +01:00
ipx
irda
iucv
kcm
key
l2tp
l3mdev
lapb
llc
mac80211
mac802154 ktime: Cleanup ktime_set() usage 2016-12-25 17:21:22 +01:00
mpls
ncsi
netfilter netfilter: allow logging from non-init namespaces 2017-02-02 14:31:58 +01:00
netlabel
netlink
netrom
nfc
openvswitch netfilter: add and use nf_ct_set helper 2017-02-02 14:31:54 +01:00
packet
phonet
qrtr
rds
rfkill
rose
rxrpc
sched skbuff: add and use skb_nfct helper 2017-02-02 14:31:53 +01:00
sctp sctp: refactor sctp_datamsg_from_user 2016-12-29 14:44:03 -05:00
strparser
sunrpc
switchdev
tipc
unix
vmw_vsock
wimax
wireless
x25
xfrm ktime: Cleanup ktime_set() usage 2016-12-25 17:21:22 +01:00
Kconfig
Makefile
compat.c
socket.c
sysctl_net.c