X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=arch%2Fia64%2Fkernel%2Fptrace.c;fp=arch%2Fia64%2Fkernel%2Fptrace.c;h=7c8db71f6206733deeddf7c766549725a2e7d09e;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=004f8b67f71175df38b202f46a24ffa07eaafd1d;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/arch/ia64/kernel/ptrace.c b/arch/ia64/kernel/ptrace.c index 004f8b67f..7c8db71f6 100644 --- a/arch/ia64/kernel/ptrace.c +++ b/arch/ia64/kernel/ptrace.c @@ -6,6 +6,7 @@ * * Derived from the x86 and Alpha versions. */ +#include #include #include #include @@ -17,6 +18,7 @@ #include #include #include +#include #include #include @@ -1646,7 +1648,7 @@ syscall_trace_enter (long arg0, long arg1, long arg2, long arg3, arch = AUDIT_ARCH_IA64; } - audit_syscall_entry(arch, syscall, arg0, arg1, arg2, arg3); + audit_syscall_entry(current, arch, syscall, arg0, arg1, arg2, arg3); } } @@ -1658,14 +1660,8 @@ syscall_trace_leave (long arg0, long arg1, long arg2, long arg3, long arg4, long arg5, long arg6, long arg7, struct pt_regs regs) { - if (unlikely(current->audit_context)) { - int success = AUDITSC_RESULT(regs.r10); - long result = regs.r8; - - if (success != AUDITSC_SUCCESS) - result = -result; - audit_syscall_exit(success, result); - } + if (unlikely(current->audit_context)) + audit_syscall_exit(current, AUDITSC_RESULT(regs.r10), regs.r8); if (test_thread_flag(TIF_SYSCALL_TRACE) && (current->ptrace & PT_PTRACED))