summaryrefslogtreecommitdiffstats
path: root/tests/py/any/log.t.payload
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-06-01 17:15:07 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-06-03 11:53:06 +0200
commita24552c165346f087e82a52807d134e3910387a8 (patch)
tree378f69e8fe6c10ac6fd0d111313c3b0ed14371d5 /tests/py/any/log.t.payload
parentefc8a83e943d54e0ca88548a0eaff056ad2a650d (diff)
log: Add support for audit logging
This is implemented via a pseudo log level. The kernel ignores any other parameter, so reject those at evaluation stage. Audit logging is therefore simply a matter of: | log level audit Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/any/log.t.payload')
-rw-r--r--tests/py/any/log.t.payload4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/py/any/log.t.payload b/tests/py/any/log.t.payload
index ffb914d2..1330445b 100644
--- a/tests/py/any/log.t.payload
+++ b/tests/py/any/log.t.payload
@@ -34,6 +34,10 @@ ip test-ip4 output
ip test-ip4 output
[ log level 7 ]
+# log level audit
+ip test-ip4 output
+ [ log level 8 ]
+
# log prefix aaaaa-aaaaaa group 2 snaplen 33
ip test-ip4 output
[ log prefix aaaaa-aaaaaa group 2 snaplen 33 qthreshold 0 ]