projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9caed5
)
netfilter: xt_AUDIT: only generate audit log when audit enabled
author
Gao feng
<gaofeng@cn.fujitsu.com>
Mon, 4 Mar 2013 00:29:12 +0000
(
00:29
+0000)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Mon, 4 Mar 2013 13:45:25 +0000
(14:45 +0100)
We should stop generting audit log if audit is disabled.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_AUDIT.c
patch
|
blob
|
history
diff --git
a/net/netfilter/xt_AUDIT.c
b/net/netfilter/xt_AUDIT.c
index
ba92824
..
3228d7f
100644
(file)
--- a/
net/netfilter/xt_AUDIT.c
+++ b/
net/netfilter/xt_AUDIT.c
@@
-124,6
+124,9
@@
audit_tg(struct sk_buff *skb, const struct xt_action_param *par)
const struct xt_audit_info *info = par->targinfo;
struct audit_buffer *ab;
+ if (audit_enabled == 0)
+ goto errout;
+
ab = audit_log_start(NULL, GFP_ATOMIC, AUDIT_NETFILTER_PKT);
if (ab == NULL)
goto errout;