diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/auditsc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index ba0ec1ba6698..7ed82b088e4b 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -736,10 +736,11 @@ void audit_free(struct task_struct *tsk) | |||
736 | * will only be written if another part of the kernel requests that it | 736 | * will only be written if another part of the kernel requests that it |
737 | * be written). | 737 | * be written). |
738 | */ | 738 | */ |
739 | void audit_syscall_entry(struct task_struct *tsk, int arch, int major, | 739 | void audit_syscall_entry(int arch, int major, |
740 | unsigned long a1, unsigned long a2, | 740 | unsigned long a1, unsigned long a2, |
741 | unsigned long a3, unsigned long a4) | 741 | unsigned long a3, unsigned long a4) |
742 | { | 742 | { |
743 | struct task_struct *tsk = current; | ||
743 | struct audit_context *context = tsk->audit_context; | 744 | struct audit_context *context = tsk->audit_context; |
744 | enum audit_state state; | 745 | enum audit_state state; |
745 | 746 | ||
@@ -817,12 +818,11 @@ void audit_syscall_entry(struct task_struct *tsk, int arch, int major, | |||
817 | * message), then write out the syscall information. In call cases, | 818 | * message), then write out the syscall information. In call cases, |
818 | * free the names stored from getname(). | 819 | * free the names stored from getname(). |
819 | */ | 820 | */ |
820 | void audit_syscall_exit(struct task_struct *tsk, int valid, long return_code) | 821 | void audit_syscall_exit(int valid, long return_code) |
821 | { | 822 | { |
823 | struct task_struct *tsk = current; | ||
822 | struct audit_context *context; | 824 | struct audit_context *context; |
823 | 825 | ||
824 | /* tsk == current */ | ||
825 | |||
826 | get_task_struct(tsk); | 826 | get_task_struct(tsk); |
827 | task_lock(tsk); | 827 | task_lock(tsk); |
828 | context = audit_get_context(tsk, valid, return_code); | 828 | context = audit_get_context(tsk, valid, return_code); |