aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-03-29 20:23:36 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2006-05-01 06:06:18 -0400
commit5411be59db80333039386f3b1ccfe5eb9023a916 (patch)
tree77873af4b7557768c3c48b56e7ae4508be4a70a5 /kernel
parente495149b173d8e133e1f6f2eb86fd97be7e92010 (diff)
[PATCH] drop task argument of audit_syscall_{entry,exit}
... it's always current, and that's a good thing - allows simpler locking. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/auditsc.c8
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 */
739void audit_syscall_entry(struct task_struct *tsk, int arch, int major, 739void 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 */
820void audit_syscall_exit(struct task_struct *tsk, int valid, long return_code) 821void 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);