diff options
author | Paul Moore <paul@paul-moore.com> | 2018-11-27 00:40:07 +0100 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2018-11-27 00:41:21 +0100 |
commit | 2a1fe215e7300c7ebd6a7a24afcab71db5107bb0 (patch) | |
tree | 181324f746d2c174adfcb2dc5553fe27c4afdd88 /kernel/audit.h | |
parent | audit: minimize our use of audit_log_format() (diff) | |
download | linux-2a1fe215e7300c7ebd6a7a24afcab71db5107bb0.tar.xz linux-2a1fe215e7300c7ebd6a7a24afcab71db5107bb0.zip |
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 'kernel/audit.h')
-rw-r--r-- | kernel/audit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.h b/kernel/audit.h index 0b5295aeaebb..91421679a168 100644 --- a/kernel/audit.h +++ b/kernel/audit.h @@ -264,7 +264,7 @@ extern struct audit_entry *audit_dupe_rule(struct audit_krule *old); extern void audit_log_d_path_exe(struct audit_buffer *ab, struct mm_struct *mm); -extern struct tty_struct *audit_get_tty(struct task_struct *tsk); +extern struct tty_struct *audit_get_tty(void); extern void audit_put_tty(struct tty_struct *tty); /* audit watch functions */ |