projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
audit: trigger accompanying records when no rules present
[linux-2.6-block.git]
/
kernel
/
audit.c
diff --git
a/kernel/audit.c
b/kernel/audit.c
index 0be42cac086bfbbb6d0fcb7aaf05a8f63b096a0d..ac0aeaa99937ae64c153b37f239fc2e784a31d4a 100644
(file)
--- a/
kernel/audit.c
+++ b/
kernel/audit.c
@@
-1865,6
+1865,9
@@
struct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask,
}
audit_get_stamp(ab->ctx, &t, &serial);
+ /* cancel dummy context to enable supporting records */
+ if (ctx)
+ ctx->dummy = 0;
audit_log_format(ab, "audit(%llu.%03lu:%u): ",
(unsigned long long)t.tv_sec, t.tv_nsec/1000000, serial);