]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/ipnetns.c
iproute2: Fail "ip netns add" on existing network namespaces.
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 15 Jul 2011 14:29:41 +0000 (14:29 +0000)
committerStephen Hemminger <shemminger@vyatta.com>
Wed, 31 Aug 2011 18:02:26 +0000 (11:02 -0700)
commit223f4d8ea6803bd9288d54c819e54a88a63c1730
treeb57e41ebc653cfdca9da5d294196decdcf4c4f9b
parent2e8a07f543e6f48f0d0479e3dd4796c18f733e12
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>
ip/ipnetns.c