* [PATCH 2.6.17-rc6-mm2] ipc namespace : unshare fix
@ 2006-06-12 20:11 Cedric Le Goater
0 siblings, 0 replies; only message in thread
From: Cedric Le Goater @ 2006-06-12 20:11 UTC (permalink / raw)
To: Andrew Morton
Cc: Linux Kernel Mailing List, devel, xemul, Eric W. Biederman,
Herbert Poetzl, saw, Serge E. Hallyn, sfrench, Sam Vilain,
Dave Hansen
small fix for unshare of ipc namespace
Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
---
kernel/fork.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: 2.6.17-rc6-mm2/kernel/fork.c
===================================================================
--- 2.6.17-rc6-mm2.orig/kernel/fork.c
+++ 2.6.17-rc6-mm2/kernel/fork.c
@@ -1599,7 +1599,8 @@ asmlinkage long sys_unshare(unsigned lon
/* Return -EINVAL for all unsupported flags */
err = -EINVAL;
if (unshare_flags & ~(CLONE_THREAD|CLONE_FS|CLONE_NEWNS|CLONE_SIGHAND|
- CLONE_VM|CLONE_FILES|CLONE_SYSVSEM|CLONE_NEWUTS))
+ CLONE_VM|CLONE_FILES|CLONE_SYSVSEM|
+ CLONE_NEWUTS|CLONE_NEWIPC))
goto bad_unshare_out;
if ((err = unshare_thread(unshare_flags)))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-12 20:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-12 20:11 [PATCH 2.6.17-rc6-mm2] ipc namespace : unshare fix Cedric Le Goater
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.