commit | 223f4d8ea6803bd9288d54c819e54a88a63c1730 | [log] [tgz] |
---|---|---|
author | Eric W. Biederman <ebiederm@xmission.com> | Fri Jul 15 14:29:41 2011 +0000 |
committer | Stephen Hemminger <shemminger@vyatta.com> | Wed Aug 31 11:02:26 2011 -0700 |
tree | b57e41ebc653cfdca9da5d294196decdcf4c4f9b | |
parent | 2e8a07f543e6f48f0d0479e3dd4796c18f733e12 [diff] |
iproute2: Fail "ip netns add" on existing network namespaces. Use O_EXCL so that we only create and mount a new network namespace if there is no chance an existing network namespace is present. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>