shim

package
v0.2.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const Env = "FORTIFY_SHIM"

Variables

This section is empty.

Functions

func Main

func Main()

Types

type Payload

type Payload struct {
	// child full argv
	Argv []string
	// bwrap, target full exec path
	Exec [2]string
	// bwrap config
	Bwrap *bwrap.Config
	// path to outer home directory
	Home string
	// sync fd
	Sync *uintptr

	// verbosity pass through
	Verbose bool
}

type Shim

type Shim struct {
	// contains filtered or unexported fields
}

func (*Shim) Serve

func (s *Shim) Serve(ctx context.Context, payload *Payload) error

func (*Shim) Start

func (s *Shim) Start(

	aid string,

	supp []string,

	syncFd *os.File,
) (*time.Time, error)

func (*Shim) String

func (s *Shim) String() string

func (*Shim) Unwrap

func (s *Shim) Unwrap() *exec.Cmd

func (*Shim) WaitFallback

func (s *Shim) WaitFallback() chan error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL