Merge "Fix privileged create_netns function" into stable/train

This commit is contained in:
Zuul 2022-01-12 21:29:18 +00:00 committed by Gerrit Code Review
commit 94e4cbb5f0
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ def create_netns(name, **kwargs):
pid = os.fork()
if pid == 0:
try:
netns.create(name, libc=_get_cdll())
netns._create(name, libc=_get_cdll())
except OSError as e:
if e.errno != errno.EEXIST:
os._exit(1)