Message ID | 1408611405-8943-5-git-send-email-takahiro.akashi@linaro.org |
---|---|
State | New |
Headers | show |
On Thu, Aug 21, 2014 at 3:56 AM, AKASHI Takahiro <takahiro.akashi@linaro.org> wrote: > This patch allows compat task to issue seccomp() system call. > > Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> > --- > arch/arm64/include/asm/unistd.h | 2 +- > arch/arm64/include/asm/unistd32.h | 3 +++ > 2 files changed, 4 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h > index 4bc95d2..cf6ee31 100644 > --- a/arch/arm64/include/asm/unistd.h > +++ b/arch/arm64/include/asm/unistd.h > @@ -41,7 +41,7 @@ > #define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE+2) > #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE+5) > > -#define __NR_compat_syscalls 383 > +#define __NR_compat_syscalls 384 > #endif > > #define __ARCH_WANT_SYS_CLONE > diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h > index e242600..2922c40 100644 > --- a/arch/arm64/include/asm/unistd32.h > +++ b/arch/arm64/include/asm/unistd32.h > @@ -787,3 +787,6 @@ __SYSCALL(__NR_sched_setattr, sys_sched_setattr) > __SYSCALL(__NR_sched_getattr, sys_sched_getattr) > #define __NR_renameat2 382 > __SYSCALL(__NR_renameat2, sys_renameat2) > +#define __NR_seccomp 383 > +__SYSCALL(__NR_seccomp, sys_seccomp) > + Nit: this adds a trailing blank line. Other than that: Reviewed-by: Kees Cook <keescook@chromium.org> -Kees > -- > 1.7.9.5 >
On 08/22/2014 02:52 AM, Kees Cook wrote: > On Thu, Aug 21, 2014 at 3:56 AM, AKASHI Takahiro > <takahiro.akashi@linaro.org> wrote: >> This patch allows compat task to issue seccomp() system call. >> >> Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> >> --- >> arch/arm64/include/asm/unistd.h | 2 +- >> arch/arm64/include/asm/unistd32.h | 3 +++ >> 2 files changed, 4 insertions(+), 1 deletion(-) >> >> diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h >> index 4bc95d2..cf6ee31 100644 >> --- a/arch/arm64/include/asm/unistd.h >> +++ b/arch/arm64/include/asm/unistd.h >> @@ -41,7 +41,7 @@ >> #define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE+2) >> #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE+5) >> >> -#define __NR_compat_syscalls 383 >> +#define __NR_compat_syscalls 384 >> #endif >> >> #define __ARCH_WANT_SYS_CLONE >> diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h >> index e242600..2922c40 100644 >> --- a/arch/arm64/include/asm/unistd32.h >> +++ b/arch/arm64/include/asm/unistd32.h >> @@ -787,3 +787,6 @@ __SYSCALL(__NR_sched_setattr, sys_sched_setattr) >> __SYSCALL(__NR_sched_getattr, sys_sched_getattr) >> #define __NR_renameat2 382 >> __SYSCALL(__NR_renameat2, sys_renameat2) >> +#define __NR_seccomp 383 >> +__SYSCALL(__NR_seccomp, sys_seccomp) >> + > > Nit: this adds a trailing blank line. Other than that: I will fix it. Thanks, -Takahiro AKASHI > Reviewed-by: Kees Cook <keescook@chromium.org> > > -Kees > >> -- >> 1.7.9.5 >> > > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
On Thu, Aug 21, 2014 at 09:56:43AM +0100, AKASHI Takahiro wrote: > This patch allows compat task to issue seccomp() system call. > > Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> > --- > arch/arm64/include/asm/unistd.h | 2 +- > arch/arm64/include/asm/unistd32.h | 3 +++ > 2 files changed, 4 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h > index 4bc95d2..cf6ee31 100644 > --- a/arch/arm64/include/asm/unistd.h > +++ b/arch/arm64/include/asm/unistd.h > @@ -41,7 +41,7 @@ > #define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE+2) > #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE+5) > > -#define __NR_compat_syscalls 383 > +#define __NR_compat_syscalls 384 > #endif > > #define __ARCH_WANT_SYS_CLONE > diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h > index e242600..2922c40 100644 > --- a/arch/arm64/include/asm/unistd32.h > +++ b/arch/arm64/include/asm/unistd32.h > @@ -787,3 +787,6 @@ __SYSCALL(__NR_sched_setattr, sys_sched_setattr) > __SYSCALL(__NR_sched_getattr, sys_sched_getattr) > #define __NR_renameat2 382 > __SYSCALL(__NR_renameat2, sys_renameat2) > +#define __NR_seccomp 383 > +__SYSCALL(__NR_seccomp, sys_seccomp) > + This will need rebasing onto -rc2, as we're hooked up two new compat syscalls recently. Will -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
On 08/27/2014 02:53 AM, Will Deacon wrote: > On Thu, Aug 21, 2014 at 09:56:43AM +0100, AKASHI Takahiro wrote: >> This patch allows compat task to issue seccomp() system call. >> >> Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> >> --- >> arch/arm64/include/asm/unistd.h | 2 +- >> arch/arm64/include/asm/unistd32.h | 3 +++ >> 2 files changed, 4 insertions(+), 1 deletion(-) >> >> diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h >> index 4bc95d2..cf6ee31 100644 >> --- a/arch/arm64/include/asm/unistd.h >> +++ b/arch/arm64/include/asm/unistd.h >> @@ -41,7 +41,7 @@ >> #define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE+2) >> #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE+5) >> >> -#define __NR_compat_syscalls 383 >> +#define __NR_compat_syscalls 384 >> #endif >> >> #define __ARCH_WANT_SYS_CLONE >> diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h >> index e242600..2922c40 100644 >> --- a/arch/arm64/include/asm/unistd32.h >> +++ b/arch/arm64/include/asm/unistd32.h >> @@ -787,3 +787,6 @@ __SYSCALL(__NR_sched_setattr, sys_sched_setattr) >> __SYSCALL(__NR_sched_getattr, sys_sched_getattr) >> #define __NR_renameat2 382 >> __SYSCALL(__NR_renameat2, sys_renameat2) >> +#define __NR_seccomp 383 >> +__SYSCALL(__NR_seccomp, sys_seccomp) >> + > > This will need rebasing onto -rc2, as we're hooked up two new compat > syscalls recently. Thanks for heads-up. Fixed it. -Takahiro AKASHI > Will > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h index 4bc95d2..cf6ee31 100644 --- a/arch/arm64/include/asm/unistd.h +++ b/arch/arm64/include/asm/unistd.h @@ -41,7 +41,7 @@ #define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE+2) #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE+5) -#define __NR_compat_syscalls 383 +#define __NR_compat_syscalls 384 #endif #define __ARCH_WANT_SYS_CLONE diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h index e242600..2922c40 100644 --- a/arch/arm64/include/asm/unistd32.h +++ b/arch/arm64/include/asm/unistd32.h @@ -787,3 +787,6 @@ __SYSCALL(__NR_sched_setattr, sys_sched_setattr) __SYSCALL(__NR_sched_getattr, sys_sched_getattr) #define __NR_renameat2 382 __SYSCALL(__NR_renameat2, sys_renameat2) +#define __NR_seccomp 383 +__SYSCALL(__NR_seccomp, sys_seccomp) +
This patch allows compat task to issue seccomp() system call. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- arch/arm64/include/asm/unistd.h | 2 +- arch/arm64/include/asm/unistd32.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)