diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-10-21 23:10:52 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-10-21 23:10:52 +0000 |
commit | eff88efe81e2a2dcc0ee541e90755d4d21374315 (patch) | |
tree | 967638a38d03d2c6e778cab057a6558d71e4ec2c /pkg/sentry/kernel/ipc/ns.go | |
parent | ac2e48668b599b3d3b0b4f5c4453b61773cae6fd (diff) | |
parent | 14f4113924c8b7b8c161be7335b147106d0c4a26 (diff) |
Merge release-20211011.0-59-g14f411392 (automated)
Diffstat (limited to 'pkg/sentry/kernel/ipc/ns.go')
-rw-r--r-- | pkg/sentry/kernel/ipc/ns.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/ipc/ns.go b/pkg/sentry/kernel/ipc/ns.go new file mode 100644 index 000000000..220c9eafb --- /dev/null +++ b/pkg/sentry/kernel/ipc/ns.go @@ -0,0 +1,22 @@ +// Copyright 2021 The gVisor Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package ipc + +type contextID int + +// CtxIPCNamespace is the context.Value key used to retreive an IPC namespace. +// We define it here because it's needed in several packages, and is not +// possible to use otherwise without causing a circular depenedency. +const CtxIPCNamespace contextID = iota |