diff options
author | Paul Moore <paul@paul-moore.com> | 2018-11-27 02:40:07 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2018-11-27 02:41:21 +0300 |
commit | 2a1fe215e7300c7ebd6a7a24afcab71db5107bb0 (patch) | |
tree | 181324f746d2c174adfcb2dc5553fe27c4afdd88 /security | |
parent | d0a3f18a70f2d9700bf9f5e9c4a505472388a7c1 (diff) | |
download | linux-2a1fe215e7300c7ebd6a7a24afcab71db5107bb0.tar.xz |
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>
Diffstat (limited to 'security')
-rw-r--r-- | security/integrity/ima/ima_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_api.c b/security/integrity/ima/ima_api.c index 99dd1d53fc35..af134588ab4e 100644 --- a/security/integrity/ima/ima_api.c +++ b/security/integrity/ima/ima_api.c @@ -336,7 +336,7 @@ void ima_audit_measurement(struct integrity_iint_cache *iint, audit_log_untrustedstring(ab, filename); audit_log_format(ab, " hash=\"%s:%s\"", algo_name, hash); - audit_log_task_info(ab, current); + audit_log_task_info(ab); audit_log_end(ab); iint->flags |= IMA_AUDITED; |