audit: use current whenever possible
authorPaul Moore <paul@paul-moore.com>
Mon, 26 Nov 2018 23:40:07 +0000 (18:40 -0500)
committerPaul Moore <paul@paul-moore.com>
Mon, 26 Nov 2018 23:41:21 +0000 (18:41 -0500)
commit2a1fe215e7300c7ebd6a7a24afcab71db5107bb0
tree181324f746d2c174adfcb2dc5553fe27c4afdd88
parentd0a3f18a70f2d9700bf9f5e9c4a505472388a7c1
audit: use current whenever possible

There are many places, notably audit_log_task_info() and
audit_log_exit(), that take task_struct pointers but in reality they
are always working on the current task.  This patch eliminates the
task_struct arguments and uses current directly which allows a number
of cleanups as well.

Acked-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
drivers/tty/tty_audit.c
include/linux/audit.h
kernel/audit.c
kernel/audit.h
kernel/auditsc.c
security/integrity/ima/ima_api.c