提交 d6e0e158 编写于 作者: D David Woodhouse

AUDIT: Drop user-generated messages immediately while auditing disabled.

Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 df517985
......@@ -437,7 +437,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
if (!tsk)
return -ESRCH;
if (audit_filter_user(tsk, msg_type)) {
if (audit_enabled && audit_filter_user(tsk, msg_type)) {
ab = audit_log_start(NULL, msg_type);
if (ab) {
audit_log_format(ab,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册