nsproxy.c (4865ecf1315b450ab3317a745a6678c04d311e40) | nsproxy.c (071df104f808b8195c40643dcb4d060681742e29) |
---|---|
1/* 2 * Copyright (C) 2006 IBM Corporation 3 * 4 * Author: Serge Hallyn <serue@us.ibm.com> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation, version 2 of the --- 68 unchanged lines hidden (view full) --- 77 struct nsproxy *new_ns; 78 int err = 0; 79 80 if (!old_ns) 81 return 0; 82 83 get_nsproxy(old_ns); 84 | 1/* 2 * Copyright (C) 2006 IBM Corporation 3 * 4 * Author: Serge Hallyn <serue@us.ibm.com> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation, version 2 of the --- 68 unchanged lines hidden (view full) --- 77 struct nsproxy *new_ns; 78 int err = 0; 79 80 if (!old_ns) 81 return 0; 82 83 get_nsproxy(old_ns); 84 |
85 if (!(flags & CLONE_NEWNS)) | 85 if (!(flags & (CLONE_NEWNS | CLONE_NEWUTS))) |
86 return 0; 87 88 new_ns = clone_namespaces(old_ns); 89 if (!new_ns) { 90 err = -ENOMEM; 91 goto out; 92 } 93 --- 31 unchanged lines hidden --- | 86 return 0; 87 88 new_ns = clone_namespaces(old_ns); 89 if (!new_ns) { 90 err = -ENOMEM; 91 goto out; 92 } 93 --- 31 unchanged lines hidden --- |