]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: add NFT_LOGLEVEL_* enumeration and use it
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 3 Jun 2018 10:06:57 +0000 (12:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jun 2018 20:14:00 +0000 (16:14 -0400)
commit9c0e88e3fe4187d646f443fcac5df31ee31ced85
tree9ef59ad2d7eaf8c25cd2b4e85eeadddcb0c67485
parent7afe309a8ea4061414af04f9c8519e7912973ebb
netfilter: nf_tables: add NFT_LOGLEVEL_* enumeration and use it

This is internal, not exposed through uapi, and although it maps with
userspace LOG_*, with the introduction of LOGLEVEL_AUDIT we are
incurring in namespace pollution.

This patch adds the NFT_LOGLEVEL_ enumeration and use it from nft_log.

Fixes: eff46b866435 ("netfilter: nf_tables: Add audit support to log statement")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nft_log.c