mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
AUDIT: Drop user-generated messages immediately while auditing disabled.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
df5179854b
commit
d6e0e1585a
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
|
||||||
if (!tsk)
|
if (!tsk)
|
||||||
return -ESRCH;
|
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);
|
ab = audit_log_start(NULL, msg_type);
|
||||||
if (ab) {
|
if (ab) {
|
||||||
audit_log_format(ab,
|
audit_log_format(ab,
|
||||||
|
|
Loading…
Reference in a new issue