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)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 12 Oct 2016 12:04:22 +0000 (17:34 +0530)
commitf885566c5eaed6f3e0746669f9e0997a1a3323de
treed9c5feedb5ab183d31b54e025227721e4aa2c7b1
parentce33efa799c4bb826ccdd1ec0e560c215b757c20
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