OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 2.6.17-rc6-mm2] ipc namespace : unshare fix
[PATCH 2.6.17-rc6-mm2] ipc namespace : unshare fix [message #3726] Mon, 12 June 2006 20:11
Cedric Le Goater is currently offline  Cedric Le Goater
Messages: 443
Registered: February 2006
Senior Member
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)))
 
Read Message
Previous Topic: Re: [Announce] New vzctl and devel kernel releases; OpenVZ wiki
Next Topic: [PATCH] IPC namespace
Goto Forum:
  


Current Time: Tue Sep 17 07:57:27 GMT 2024

Total time taken to generate the page: 0.05042 seconds