[PATCH 2/3] add do_unshare()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: <clg@...>, <serue@...>, David C. Hansen <haveblue@...>, Pavel Emelyanov <xemul@...>, Containers <containers@...>, <linux-kernel@...>
Date: Wednesday, April 9, 2008 - 6:34 pm

From: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Subject: [PATCH 2/3] add do_unshare()

This patch adds a do_unshare() routine which will be common
to the unshare() and unshare64() syscall.

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
---
 kernel/fork.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Index: 2.6.25-rc2-mm1/kernel/fork.c
===================================================================
--- 2.6.25-rc2-mm1.orig/kernel/fork.c
+++ 2.6.25-rc2-mm1/kernel/fork.c
@@ -1696,7 +1696,7 @@ static int unshare_semundo(u64 unshare_f
  * constructed. Here we are modifying the current, active,
  * task_struct.
  */
-asmlinkage long sys_unshare(unsigned long unshare_flags)
+static long do_unshare(u64 unshare_flags)
 {
 	int err = 0;
 	struct fs_struct *fs, *new_fs = NULL;
@@ -1790,3 +1790,8 @@ bad_unshare_cleanup_thread:
 bad_unshare_out:
 	return err;
 }
+
+asmlinkage long sys_unshare(unsigned long unshare_flags)
+{
+	return do_unshare(unshare_flags);
+}

-- 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "lxc-dev" group.
To post to this group, send email to lxc-dev@googlegroups.com
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 0/3] clone64() and unshare64() system calls, H. Peter Anvin, (Wed Apr 9, 8:00 pm)
Re: [PATCH 0/3] clone64() and unshare64() system calls, Cedric Le Goater, (Thu Apr 10, 2:48 am)
Re: [PATCH 0/3] clone64() and unshare64() system calls, H. Peter Anvin, (Wed Apr 9, 9:10 pm)
Re: [PATCH 0/3] clone64() and unshare64() system calls, Cedric Le Goater, (Thu Apr 10, 8:33 am)
Re: [PATCH 0/3] clone64() and unshare64() system calls, H. Peter Anvin, (Thu Apr 10, 12:00 pm)
Re: [PATCH 0/3] clone64() and unshare64() system calls, Paul Menage, (Wed Apr 9, 10:43 pm)
Re: [PATCH 0/3] clone64() and unshare64() system calls, H. Peter Anvin, (Thu Apr 10, 2:31 pm)
Re: [PATCH 3/3] add the clone64() and unshare64() syscalls, H. Peter Anvin, (Wed Apr 9, 11:40 pm)
[PATCH 2/3] add do_unshare(), , (Wed Apr 9, 6:34 pm)
Re: [PATCH 1/3] change clone_flags type to u64, Andi Kleen, (Thu Apr 10, 4:25 am)
Re: [PATCH 1/3] change clone_flags type to u64, Cedric Le Goater, (Thu Apr 10, 8:25 am)
Re: [PATCH 1/3] change clone_flags type to u64, Andi Kleen, (Thu Apr 10, 8:52 am)
Re: [PATCH 1/3] change clone_flags type to u64, Serge E. Hallyn, (Thu Apr 10, 1:14 pm)
Re: [PATCH 1/3] change clone_flags type to u64, Daniel Hokka Zakrisson, (Thu Apr 10, 6:13 pm)
Re: [PATCH 1/3] change clone_flags type to u64, Serge E. Hallyn, (Thu Apr 10, 6:49 pm)
Re: [PATCH 1/3] change clone_flags type to u64, Daniel Hokka Zakrisson, (Fri Apr 11, 4:45 am)
Re: [PATCH 1/3] change clone_flags type to u64, Cedric Le Goater, (Thu Apr 10, 9:18 am)
Re: [PATCH 1/3] change clone_flags type to u64, Kirill Korotaev, (Thu Apr 10, 9:11 am)
Re: [PATCH 1/3] change clone_flags type to u64, Cedric Le Goater, (Thu Apr 10, 9:23 am)