BACKPORT: audit: consistently record PIDs with task_tgid_nr()
authorPaul Moore <paul@paul-moore.com>
Tue, 30 Aug 2016 21:19:13 +0000 (17:19 -0400)
committerJeff Vander Stoep <jeffv@google.com>
Sat, 24 Sep 2016 22:10:25 +0000 (15:10 -0700)
commit494a59a68340b0244cd6edf7a367e9233b006a3f
tree5e40215d4965358b6dc7d4d7f28762bcbaf641ef
parent4055d6b56ac1de5b900ce6f0b484996aa357ee66
BACKPORT: audit: consistently record PIDs with task_tgid_nr()

Unfortunately we record PIDs in audit records using a variety of
methods despite the correct way being the use of task_tgid_nr().
This patch converts all of these callers, except for the case of
AUDIT_SET in audit_receive_msg() (see the comment in the code).

Reported-by: Jeff Vander Stoep <jeffv@google.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Bug: 28952093

(cherry picked from commit fa2bea2f5cca5b8d4a3e5520d2e8c0ede67ac108)
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Change-Id: If6645f9de8bc58ed9755f28dc6af5fbf08d72a00
kernel/audit.c
kernel/auditsc.c
security/lsm_audit.c