Documentation
¶
Overview ¶
Package sentrycmd holds the subcommands run by the sentry process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // DirectfsSandboxLinuxCaps is the minimal set of capabilities needed by the // sandbox to operate on files in directfs mode. DirectfsSandboxLinuxCaps = &specs.LinuxCapabilities{ Bounding: directfsSandboxCaps, Effective: directfsSandboxCaps, Permitted: directfsSandboxCaps, } )
Note that directfsSandboxCaps is the same as caps defined in gofer.go except CAP_SYS_CHROOT because we don't need to chroot in directfs mode.
Functions ¶
func NvproxySupportedDrivers ¶
func NvproxySupportedDrivers() []nvconf.DriverVersion
NvproxySupportedDrivers returns the driver versions that nvproxy supports.
Types ¶
type ArchInfo ¶
type ArchInfo struct {
// Syscalls maps syscall number for the architecture to the doc.
Syscalls map[uintptr]SyscallDoc `json:"syscalls"`
}
ArchInfo is compatibility doc for an architecture.
type Boot ¶
type Boot struct {
util.InternalSubCommand
// contains filtered or unexported fields
}
Boot implements subcommands.Command for the "boot" command which starts a new sandbox. It should not be called directly.
func (*Boot) Execute ¶
func (b *Boot) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute. It starts a sandbox in a waiting state.
type CompatibilityInfo ¶
CompatibilityInfo is a map of system and architecture to compatibility doc. Maps operating system to architecture to ArchInfo.
type SyscallDoc ¶
type SyscallDoc struct {
Name string `json:"name"`
Support string `json:"support"`
Note string `json:"note,omitempty"`
URLs []string `json:"urls,omitempty"`
// contains filtered or unexported fields
}
SyscallDoc represents a single item of syscall documentation.
type Syscalls ¶
type Syscalls struct {
forwardcmd.Syscalls
}
Syscalls implements subcommands.Command for the "syscalls" command.
func (*Syscalls) Execute ¶
func (s *Syscalls) Execute(context.Context, *flag.FlagSet, ...any) subcommands.ExitStatus
Execute implements subcommands.Command.Execute.