blob: bacf1fe98661c340a5feeae9a4fb6cc473bf1547 [file] [log] [blame]
From 1b7479705d6ca2ac6067430a8d4f9408ebffb3c5 Mon Sep 17 00:00:00 2001
From: Kees Cook <keescook@chromium.org>
Date: Wed, 19 Sep 2012 20:11:23 -0700
Subject: [PATCH] CHROMIUM: finit_module: add syscall to asm-generic
This adds the finit_module syscall to the generic syscall list.
BUG=chromium-os:34134
TEST=parrot build & boot, manual testing
[accepted into Rusty's modules-wip tree for linux-next:
http://git.kernel.org/?p=linux/kernel/git/rusty/linux.git;a=shortlog;h=refs/heads/modules-wip]
Change-Id: Ifeb1db7350685967ee9d4cffe06d1df689e289bd
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/#/c/34304
Reviewed-by: Olof Johansson <olofj@chromium.org>
---
include/asm-generic/unistd.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/asm-generic/unistd.h b/include/asm-generic/unistd.h
index 991ef01..ed53fb0 100644
--- a/include/asm-generic/unistd.h
+++ b/include/asm-generic/unistd.h
@@ -691,9 +691,12 @@ __SC_COMP(__NR_process_vm_readv, sys_process_vm_readv, \
#define __NR_process_vm_writev 271
__SC_COMP(__NR_process_vm_writev, sys_process_vm_writev, \
compat_sys_process_vm_writev)
+/* 272 reserved for kcmp */
+#define __NR_finit_module 273
+__SYSCALL(__NR_finit_module, sys_finit_module)
#undef __NR_syscalls
-#define __NR_syscalls 272
+#define __NR_syscalls 274
/*
* All syscalls below here should go away really,
--
1.7.12.4