-
Notifications
You must be signed in to change notification settings - Fork 301
Expand file tree
/
Copy pathsandbox_options.go
More file actions
46 lines (35 loc) · 1.74 KB
/
Copy pathsandbox_options.go
File metadata and controls
46 lines (35 loc) · 1.74 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
//go:build windows && lcow
package lcow
// SandboxOptions carries configuration fields that are needed by the shim
// but do not have a direct representation in the HCS ComputeSystem document.
// These fields are consumed by downstream code (e.g., container creation,
// layer management) after the UVM is created.
type SandboxOptions struct {
// NoWritableFileShares disallows writable file shares to the UVM.
NoWritableFileShares bool
// EnableScratchEncryption enables encryption for scratch disks.
EnableScratchEncryption bool
// PolicyBasedRouting enables policy-based routing in the guest network stack.
PolicyBasedRouting bool
// Architecture is the processor architecture (e.g., "amd64", "arm64").
Architecture string
// FullyPhysicallyBacked indicates all memory allocations are backed by physical memory.
FullyPhysicallyBacked bool
// ConfidentialConfig carries confidential computing fields that are not
// part of the HCS document but are needed for confidential VM setup.
ConfidentialConfig *ConfidentialConfig
// LiveMigrationAllowed is a sandbox-scoped gate indicating that the sandbox is
// intended to be live-migratable. When true, the platform log listener will
// not be initialized.
LiveMigrationAllowed bool
}
// ConfidentialConfig carries confidential computing configuration that is not
// part of the HCS ComputeSystem document but is needed during confidential VM setup.
type ConfidentialConfig struct {
// SecurityPolicy is the security policy enforced inside the guest environment.
SecurityPolicy string
// SecurityPolicyEnforcer is the security policy enforcer type.
SecurityPolicyEnforcer string
// UvmReferenceInfoFile is the path to the signed UVM reference info file for attestation.
UvmReferenceInfoFile string
}