X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=security%2Flsm_audit.c;h=d0b74c12d56d7354b562d0577727276d806c143d;hb=349ac1a59cff621947982c774d97e0faf5365435;hp=331fd3bd0f39bd7ab7db67a5370c82f94d96a4ba;hpb=6b50202a4d53bf527c640467bcff68b50a5e38a2;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git diff --git a/security/lsm_audit.c b/security/lsm_audit.c index 331fd3bd0f39..d0b74c12d56d 100644 --- a/security/lsm_audit.c +++ b/security/lsm_audit.c @@ -220,7 +220,7 @@ static void dump_common_audit_data(struct audit_buffer *ab, */ BUILD_BUG_ON(sizeof(a->u) > sizeof(void *)*2); - audit_log_format(ab, " pid=%d comm=", task_pid_nr(current)); + audit_log_format(ab, " pid=%d comm=", task_tgid_nr(current)); audit_log_untrustedstring(ab, memcpy(comm, current->comm, sizeof(comm))); switch (a->type) { @@ -294,7 +294,7 @@ static void dump_common_audit_data(struct audit_buffer *ab, case LSM_AUDIT_DATA_TASK: { struct task_struct *tsk = a->u.tsk; if (tsk) { - pid_t pid = task_pid_nr(tsk); + pid_t pid = task_tgid_nr(tsk); if (pid) { char comm[sizeof(tsk->comm)]; audit_log_format(ab, " opid=%d ocomm=", pid);