ozinit

package
v0.0.0-...-b967545 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2017 License: BSD-3-Clause Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBUS_VAR_REGEXP = "[A-Za-z_]+=[a-zA-Z_:-@]+=/tmp/.+"
)

Variables

This section is empty.

Functions

func Main

func Main()

func Ping

func Ping(addr string) error

func ProfileHasEphemerals

func ProfileHasEphemerals(p *oz.Profile) bool

ProfileHasEphemerals checks is a profile whitelists any items within the home dir

func RunProgram

func RunProgram(addr, cpath, pwd string, args []string) error

func RunShell

func RunShell(addr, term string) (int, error)

func SetupForwarder

func SetupForwarder(addr, proto, daddr string, fd uintptr) error

Types

type ErrorMsg

type ErrorMsg struct {
	Msg string "Error"
}

type ForwarderSuccessMsg

type ForwarderSuccessMsg struct {
	Port  string "ForwarderSuccess"
	Proto string
	Addr  string
}

type InitData

type InitData struct {
	Profile   oz.Profile
	Config    oz.Config
	Sockaddr  string
	LaunchEnv []string
	Uid       uint32
	Gid       uint32
	Gids      map[string]uint32
	User      user.User
	Display   int
	Ephemeral bool
}

type OkMsg

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

type PingMsg

type PingMsg struct {
	Data string "Ping"
}

type RunProgramMsg

type RunProgramMsg struct {
	Args []string "RunProgram"
	Pwd  string
	Path string
}

type RunShellMsg

type RunShellMsg struct {
	Term string "RunShell"
}

Jump to

Keyboard shortcuts

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