From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932367Ab2ITWQl (ORCPT ); Thu, 20 Sep 2012 18:16:41 -0400 Received: from smtp.outflux.net ([198.145.64.163]:57436 "EHLO smtp.outflux.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756394Ab2ITWPi (ORCPT ); Thu, 20 Sep 2012 18:15:38 -0400 From: Kees Cook To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Rusty Russell , Mimi Zohar , Serge Hallyn , Arnd Bergmann , James Morris , Al Viro , Eric Paris , Kees Cook , Jiri Kosina , linux-security-module@vger.kernel.org Subject: [PATCH 3/4] ARM: add finit_module syscall to ARM Date: Thu, 20 Sep 2012 15:14:59 -0700 Message-Id: <1348179300-11653-3-git-send-email-keescook@chromium.org> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1348179300-11653-1-git-send-email-keescook@chromium.org> References: <1348179300-11653-1-git-send-email-keescook@chromium.org> X-HELO: www.outflux.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add finit_module syscall to the ARM syscall list. Signed-off-by: Kees Cook Acked-by: Arnd Bergmann --- arch/arm/include/asm/unistd.h | 1 + arch/arm/kernel/calls.S | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h index 0cab47d..904b579 100644 --- a/arch/arm/include/asm/unistd.h +++ b/arch/arm/include/asm/unistd.h @@ -404,6 +404,7 @@ #define __NR_setns (__NR_SYSCALL_BASE+375) #define __NR_process_vm_readv (__NR_SYSCALL_BASE+376) #define __NR_process_vm_writev (__NR_SYSCALL_BASE+377) +#define __NR_finit_module (__NR_SYSCALL_BASE+378) /* * The following SWIs are ARM private. diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S index 463ff4a..54161ac 100644 --- a/arch/arm/kernel/calls.S +++ b/arch/arm/kernel/calls.S @@ -387,6 +387,7 @@ /* 375 */ CALL(sys_setns) CALL(sys_process_vm_readv) CALL(sys_process_vm_writev) + CALL(sys_finit_module) #ifndef syscalls_counted .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls #define syscalls_counted -- 1.7.0.4