All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] unshare system call patch - needed to test pam_namespace
@ 2005-07-15 20:09 Janak Desai
  0 siblings, 0 replies; only message in thread
From: Janak Desai @ 2005-07-15 20:09 UTC (permalink / raw)
  To: selinux, janak

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

Here is part of the unshare system call patch. This one implements
system call for i386 arch. I do have suggestion for code change for
some other architectures, but since I haven't tested them I haven't
included in the patch.

-Janak

[-- Attachment #2: justi2-fsdevel --]
[-- Type: text/plain, Size: 169 bytes --]



[PATCH 2/2] unshare system call: System Call setup for i386 arch


Signed-off-by: Janak Desai

-----------------------------------------------------------------------

[-- Attachment #3: p2.patch --]
[-- Type: text/plain, Size: 1467 bytes --]

diff -Naurp linux-2.6.12/arch/i386/kernel/syscall_table.S linux-2.6.12-unshare-p2/arch/i386/kernel/syscall_table.S
--- linux-2.6.12/arch/i386/kernel/syscall_table.S	2005-06-17 19:48:29.000000000 +0000
+++ linux-2.6.12-unshare-p2/arch/i386/kernel/syscall_table.S	2005-06-22 13:20:44.000000000 +0000
@@ -289,3 +289,4 @@ ENTRY(sys_call_table)
 	.long sys_add_key
 	.long sys_request_key
 	.long sys_keyctl
+	.long sys_unshare
diff -Naurp linux-2.6.12/include/asm-i386/unistd.h linux-2.6.12-unshare-p2/include/asm-i386/unistd.h
--- linux-2.6.12/include/asm-i386/unistd.h	2005-06-17 19:48:29.000000000 +0000
+++ linux-2.6.12-unshare-p2/include/asm-i386/unistd.h	2005-06-22 13:22:22.000000000 +0000
@@ -294,8 +294,9 @@
 #define __NR_add_key		286
 #define __NR_request_key	287
 #define __NR_keyctl		288
+#define __NR_unshare		289
 
-#define NR_syscalls 289
+#define NR_syscalls 290
 
 /*
  * user-visible error numbers are in the range -1 - -128: see
diff -Naurp linux-2.6.12/include/linux/syscalls.h linux-2.6.12-unshare-p2/include/linux/syscalls.h
--- linux-2.6.12/include/linux/syscalls.h	2005-06-17 19:48:29.000000000 +0000
+++ linux-2.6.12-unshare-p2/include/linux/syscalls.h	2005-06-22 13:24:09.000000000 +0000
@@ -505,4 +505,6 @@ asmlinkage long sys_request_key(const ch
 asmlinkage long sys_keyctl(int cmd, unsigned long arg2, unsigned long arg3,
 			   unsigned long arg4, unsigned long arg5);
 
+asmlinkage long sys_unshare(unsigned long unshare_flags);
+
 #endif

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-15 20:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-15 20:09 [PATCH 2/2] unshare system call patch - needed to test pam_namespace Janak Desai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.