diff options
author | Serge E. Hallyn <serue@us.ibm.com> | 2006-10-02 05:18:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-02 10:57:22 -0400 |
commit | 071df104f808b8195c40643dcb4d060681742e29 (patch) | |
tree | e5c3355e526e0182797d59c7e80062fbc2bb7d77 /kernel/nsproxy.c | |
parent | bf47fdcda65b44dbd674eeedcaa06e0aa28a5a00 (diff) |
[PATCH] namespaces: utsname: implement CLONE_NEWUTS flag
Implement a CLONE_NEWUTS flag, and use it at clone and sys_unshare.
[clg@fr.ibm.com: IPC unshare fix]
[bunk@stusta.de: cleanup]
Signed-off-by: Serge Hallyn <serue@us.ibm.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Andrey Savochkin <saw@sw.ru>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/nsproxy.c')
-rw-r--r-- | kernel/nsproxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/nsproxy.c b/kernel/nsproxy.c index 47c19280c55b..8246813335cc 100644 --- a/kernel/nsproxy.c +++ b/kernel/nsproxy.c | |||
@@ -82,7 +82,7 @@ int copy_namespaces(int flags, struct task_struct *tsk) | |||
82 | 82 | ||
83 | get_nsproxy(old_ns); | 83 | get_nsproxy(old_ns); |
84 | 84 | ||
85 | if (!(flags & CLONE_NEWNS)) | 85 | if (!(flags & (CLONE_NEWNS | CLONE_NEWUTS))) |
86 | return 0; | 86 | return 0; |
87 | 87 | ||
88 | new_ns = clone_namespaces(old_ns); | 88 | new_ns = clone_namespaces(old_ns); |