diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-09-24 17:45:52 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-09-24 17:45:52 +0000 |
commit | 375943dc8b969a88287164fc1e1ceaf86add3813 (patch) | |
tree | 5d95e0d51607368d79fefd5801de4c1a52b6b09d /pkg/sentry/kernel/task_clone.go | |
parent | a1b00da7bd8df0b7d98fdd14b0cbcf314013bb3d (diff) | |
parent | b510c9846446d7f423c0531ec661c4344f96c578 (diff) |
Merge release-20210921.0-29-gb510c9846 (automated)
Diffstat (limited to 'pkg/sentry/kernel/task_clone.go')
-rw-r--r-- | pkg/sentry/kernel/task_clone.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/task_clone.go b/pkg/sentry/kernel/task_clone.go index 26a981f36..a6d8fb163 100644 --- a/pkg/sentry/kernel/task_clone.go +++ b/pkg/sentry/kernel/task_clone.go @@ -444,7 +444,7 @@ func (t *Task) Unshare(flags int32) error { t.mu.Unlock() return linuxerr.EPERM } - t.netns = inet.NewNamespace(t.netns) + t.netns.Store(inet.NewNamespace(t.netns.Load())) } if flags&linux.CLONE_NEWUTS != 0 { if !haveCapSysAdmin { |