/* * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) * Licensed under the GPL */ #include <linux/kernel.h> #include <linux/ptrace.h> #include <linux/seccomp.h> #include <kern_util.h> #include <sysdep/ptrace.h> #include <sysdep/ptrace_user.h> #include <sysdep/syscalls.h>
void handle_syscall(struct uml_pt_regs *r) { struct pt_regs *regs = container_of(r, struct pt_regs, regs); int syscall; /* Initialize the syscall number and default return value. */ UPT_SYSCALL_NR(r) = PT_SYSCALL_NR(r->gp); PT_REGS_SET_SYSCALL_RETURN(regs, -ENOSYS); if (syscall_trace_enter(regs)) goto out; /* Do the seccomp check after ptrace; failures should be fast. */ if (secure_computing(NULL) == -1) goto out; syscall = UPT_SYSCALL_NR(r); if (syscall >= 0 && syscall <= __NR_syscall_max) PT_REGS_SET_SYSCALL_RETURN(regs, EXECUTE_SYSCALL(syscall, regs)); out: syscall_trace_leave(regs); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 47 | 43.12% | 3 | 27.27% |
Mickaël Salaün | 43 | 39.45% | 3 | 27.27% |
Kees Cook | 8 | 7.34% | 1 | 9.09% |
Paolo 'Blaisorblade' Giarrusso | 4 | 3.67% | 1 | 9.09% |
Richard Weinberger | 3 | 2.75% | 1 | 9.09% |
Andrew Lutomirski | 2 | 1.83% | 1 | 9.09% |
Al Viro | 2 | 1.83% | 1 | 9.09% |
Total | 109 | 100.00% | 11 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 58 | 44.27% | 5 | 33.33% |
Mickaël Salaün | 48 | 36.64% | 3 | 20.00% |
Kees Cook | 8 | 6.11% | 1 | 6.67% |
Al Viro | 6 | 4.58% | 2 | 13.33% |
Richard Weinberger | 5 | 3.82% | 2 | 13.33% |
Paolo 'Blaisorblade' Giarrusso | 4 | 3.05% | 1 | 6.67% |
Andrew Lutomirski | 2 | 1.53% | 1 | 6.67% |
Total | 131 | 100.00% | 15 | 100.00% |