diff options
author | Paul Davies C <pauldaviesc@gmail.com> | 2013-11-21 08:14:03 +0530 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-01-13 22:31:38 -0500 |
commit | ff235f51a138fc61e1a22dcb8b072d9c78c2a8cc (patch) | |
tree | e60ba924338f34a394e1986a2173a8f38eee5235 /kernel/audit.c | |
parent | 34eab0a7cd45ce0eab744a86a85d83aa7ddf99a5 (diff) |
audit: Added exe field to audit core dump signal log
Currently when the coredump signals are logged by the audit system, the
actual path to the executable is not logged. Without details of exe, the
system admin may not have an exact idea on what program failed.
This patch changes the audit_log_task() so that the path to the exe is also
logged.
This was copied from audit_log_task_info() and the latter enhanced to avoid
disappearing text fields.
Signed-off-by: Paul Davies C <pauldaviesc@gmail.com>
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index f207289d686b..25e4ed016793 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -1859,7 +1859,8 @@ void audit_log_task_info(struct audit_buffer *ab, struct task_struct *tsk) if (mm->exe_file) audit_log_d_path(ab, " exe=", &mm->exe_file->f_path); up_read(&mm->mmap_sem); - } + } else + audit_log_format(ab, " exe=(null)"); audit_log_task_context(ab); } EXPORT_SYMBOL(audit_log_task_info); |