Blame SOURCES/0029-nft.8-Document-log-level-audit.patch

9ff721
From 109aab644873fcc732c08aea25288b7be1525ed0 Mon Sep 17 00:00:00 2001
9ff721
From: Phil Sutter <phil@nwl.cc>
9ff721
Date: Sat, 27 Oct 2018 12:15:50 +0200
9ff721
Subject: [PATCH] nft.8: Document log level audit
9ff721
9ff721
Since this pseudo log level fundamentally changes behaviour of log
9ff721
statement, dedicate this mode a separate paragraph.
9ff721
9ff721
Signed-off-by: Phil Sutter <phil@nwl.cc>
9ff721
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
9ff721
9ff721
Conflicts:
9ff721
	doc/statements.txt
9ff721
-> Patch manually applied to doc/nft.xml from asciidoc source.
9ff721
9ff721
Signed-off-by: Phil Sutter <psutter@redhat.com>
9ff721
---
9ff721
 doc/nft.xml | 15 ++++++++++++++-
9ff721
 1 file changed, 14 insertions(+), 1 deletion(-)
9ff721
9ff721
diff --git a/doc/nft.xml b/doc/nft.xml
9ff721
index 0df42810c5e68..22d57ac630037 100644
9ff721
--- a/doc/nft.xml
9ff721
+++ b/doc/nft.xml
9ff721
@@ -4700,9 +4700,22 @@ tcp flags syn tcp option maxseg size set rt mtu
9ff721
 					<arg choice="opt">snaplen
9ff721
 					<replaceable>size</replaceable></arg>
9ff721
 				</cmdsynopsis>
9ff721
+				<cmdsynopsis>
9ff721
+					<command>log</command>
9ff721
+					<arg choice="none">level audit</arg>
9ff721
+				</cmdsynopsis>
9ff721
+			</para>
9ff721
+			<para>
9ff721
+				The log statement enables logging of matching packets. When this statement is used from a rule, the Linux kernel will print some information on all matching packets, such as header fields, via the kernel log (where it can be read with dmesg(1) or read in the syslog).
9ff721
+			</para>
9ff721
+			<para>
9ff721
+				In the second form of invocation (if 'nflog_group' is specified), the Linux kernel will pass the packet to nfnetlink_log which will multicast the packet through a netlink socket to the specified multicast group. One or more userspace processes may subscribe to the group to receive the packets, see libnetfilter_queue documentation for details.
9ff721
+			</para>
9ff721
+			<para>
9ff721
+				In the third form of invocation (if level audit is specified), the Linux kernel writes a message into the audit buffer suitably formatted for reading with auditd. Therefore no further formatting options (such as prefix or flags) are allowed in this mode.
9ff721
 			</para>
9ff721
 			<para>
9ff721
-				The log statement enables logging of matching packets. When this statement is used from a rule, the Linux kernel will print some information on all matching packets, such as header fields, via the kernel log (where it can be read with dmesg(1) or read in the syslog). If the group number is specified, the Linux kernel will pass the packet to nfnetlink_log which will multicast the packet through a netlink socket to the specified multicast group. One or more userspace processes may subscribe to the group to receive the packets, see libnetfilter_queue documentation for details. This is a non-terminating statement, so the rule evaluation continues after the packet is logged.
9ff721
+				This is a non-terminating statement, so the rule evaluation continues after the packet is logged.
9ff721
 			</para>
9ff721
 			<para>
9ff721
 				
9ff721
-- 
bacbc8
2.21.0
9ff721