projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df51798
)
AUDIT: Drop user-generated messages immediately while auditing disabled.
author
David Woodhouse
<dwmw2@shinybook.infradead.org>
Mon, 20 Jun 2005 15:02:09 +0000
(16:02 +0100)
committer
David Woodhouse
<dwmw2@shinybook.infradead.org>
Mon, 20 Jun 2005 15:02:09 +0000
(16:02 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
kernel/audit.c
patch
|
blob
|
history
diff --git
a/kernel/audit.c
b/kernel/audit.c
index f0bbfe07313608007065e47b54b8cbe167085c50..ab6ac560cfe556b50980e07439592c001e9fc6eb 100644
(file)
--- a/
kernel/audit.c
+++ b/
kernel/audit.c
@@
-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,