From: Cedric Le Goater small fix for unshare of ipc namespace Signed-off-by: Cedric Le Goater Cc: Pavel Emelianov Cc: Kirill Korotaev Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton --- kernel/fork.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN kernel/fork.c~ipc-namespace-core-unshare-fix kernel/fork.c --- a/kernel/fork.c~ipc-namespace-core-unshare-fix +++ a/kernel/fork.c @@ -1577,7 +1577,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))) _