-
Notifications
You must be signed in to change notification settings - Fork 703
Expand file tree
/
Copy pathSandboxRoutes.swift
More file actions
48 lines (47 loc) · 2.29 KB
/
SandboxRoutes.swift
File metadata and controls
48 lines (47 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//===----------------------------------------------------------------------===//
// Copyright © 2026 Apple Inc. and the container project 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
//
// https://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.
//===----------------------------------------------------------------------===//
public enum SandboxRoutes: String {
/// Create an xpc endpoint to the sandbox instance.
case createEndpoint = "com.apple.container.sandbox/createEndpoint"
/// Bootstrap the sandbox instance and create the init process.
case bootstrap = "com.apple.container.sandbox/bootstrap"
/// Create a process in the sandbox.
case createProcess = "com.apple.container.sandbox/createProcess"
/// Start a process in the sandbox.
case start = "com.apple.container.sandbox/start"
/// Stop the sandbox.
case stop = "com.apple.container.sandbox/stop"
/// Return the current state of the sandbox.
case state = "com.apple.container.sandbox/state"
/// Kill a process in the sandbox.
case kill = "com.apple.container.sandbox/kill"
/// Resize the pty of a process in the sandbox.
case resize = "com.apple.container.sandbox/resize"
/// Wait on a process in the sandbox.
case wait = "com.apple.container.sandbox/wait"
/// Execute a new process in the sandbox.
case exec = "com.apple.container.sandbox/exec"
/// Dial a vsock port in the sandbox.
case dial = "com.apple.container.sandbox/dial"
/// Shutdown the sandbox service process.
case shutdown = "com.apple.container.sandbox/shutdown"
/// Get statistics for the sandbox.
case statistics = "com.apple.container.sandbox/statistics"
/// Copy a file into the container.
case copyIn = "com.apple.container.sandbox/copyIn"
/// Copy a file out of the container.
case copyOut = "com.apple.container.sandbox/copyOut"
}