All of lore.kernel.org
 help / color / mirror / Atom feed
From: Janak Desai <janak@us.ibm.com>
To: selinux@tycho.nsa.gov, janak@us.ibm.com
Subject: [PATCH 2/2] unshare system call patch - needed to test pam_namespace
Date: Fri, 15 Jul 2005 16:09:17 -0400	[thread overview]
Message-ID: <42D817ED.9000009@us.ibm.com> (raw)

[-- 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

                 reply	other threads:[~2005-07-15 20:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42D817ED.9000009@us.ibm.com \
    --to=janak@us.ibm.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.