aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/auditsc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r--kernel/auditsc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index cef34235b362..9c7e47ae4576 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -2628,7 +2628,8 @@ void audit_core_dumps(long signr)
2628{ 2628{
2629 struct audit_buffer *ab; 2629 struct audit_buffer *ab;
2630 u32 sid; 2630 u32 sid;
2631 uid_t auid = audit_get_loginuid(current); 2631 uid_t auid = audit_get_loginuid(current), uid;
2632 gid_t gid;
2632 unsigned int sessionid = audit_get_sessionid(current); 2633 unsigned int sessionid = audit_get_sessionid(current);
2633 2634
2634 if (!audit_enabled) 2635 if (!audit_enabled)
@@ -2638,8 +2639,9 @@ void audit_core_dumps(long signr)
2638 return; 2639 return;
2639 2640
2640 ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_ANOM_ABEND); 2641 ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_ANOM_ABEND);
2642 current_uid_gid(&uid, &gid);
2641 audit_log_format(ab, "auid=%u uid=%u gid=%u ses=%u", 2643 audit_log_format(ab, "auid=%u uid=%u gid=%u ses=%u",
2642 auid, current->uid, current->gid, sessionid); 2644 auid, uid, gid, sessionid);
2643 security_task_getsecid(current, &sid); 2645 security_task_getsecid(current, &sid);
2644 if (sid) { 2646 if (sid) {
2645 char *ctx = NULL; 2647 char *ctx = NULL;