Release 4.10 arch/um/kernel/skas/syscall.c
/*
* 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 | jeff dike | 47 | 43.12% | 3 | 27.27% |
mickael salaun | mickael salaun | 43 | 39.45% | 3 | 27.27% |
kees cook | kees cook | 8 | 7.34% | 1 | 9.09% |
paolo giarrusso | paolo giarrusso | 4 | 3.67% | 1 | 9.09% |
richard weinberger | richard weinberger | 3 | 2.75% | 1 | 9.09% |
andy lutomirski | andy lutomirski | 2 | 1.83% | 1 | 9.09% |
al viro | al viro | 2 | 1.83% | 1 | 9.09% |
| Total | 109 | 100.00% | 11 | 100.00% |
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
jeff dike | jeff dike | 58 | 44.27% | 5 | 33.33% |
mickael salaun | mickael salaun | 48 | 36.64% | 3 | 20.00% |
kees cook | kees cook | 8 | 6.11% | 1 | 6.67% |
al viro | al viro | 6 | 4.58% | 2 | 13.33% |
richard weinberger | richard weinberger | 5 | 3.82% | 2 | 13.33% |
paolo giarrusso | paolo giarrusso | 4 | 3.05% | 1 | 6.67% |
andy lutomirski | andy lutomirski | 2 | 1.53% | 1 | 6.67% |
| Total | 131 | 100.00% | 15 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.