cfg

package
v0.0.0-...-e377a08 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Envfile = "/.runqenv"

Envfile contains all entrypoint environment variables.

View Source
const KernelParameters = "console=ttyS0 panic=1 module.sig_enforce=1 loglevel=3"

KernelParameters defines kernel boot parameters.

View Source
const MinMem = 64

MinMem declares the minimum amount of RAM a VM in MiB.

Variables

View Source
var MaskedPaths = []string{
	"/proc/kcore", "/proc/latency_stats", "/proc/timer_list", "/proc/timer_stats",
	"/proc/sched_debug", "/proc/scsi", "/sys/firmware",
}

MaskedPaths masks over the provided paths inside the VM.

View Source
var ReadonlyPaths = []string{"/proc/bus", "/proc/sysrq-trigger"}

ReadonlyPaths sets the provided paths as RO inside the VM.

View Source
var ReaperInterval = time.Second * 60

ReaperInterval defines the frequency of the process reaper.

View Source
var Rlimits = map[string]syscall.Rlimit{
	"RLIMIT_NOFILE":     {Max: 65536, Cur: 65536},
	"RLIMIT_NPROC":      {Max: unix.RLIM_INFINITY, Cur: unix.RLIM_INFINITY},
	"RLIMIT_SIGPENDING": {Max: 65536, Cur: 65536},
}

Rlimits defines process settings.

View Source
var RlimitsMap = map[string]int{
	"RLIMIT_AS":         unix.RLIMIT_AS,
	"RLIMIT_CORE":       unix.RLIMIT_CORE,
	"RLIMIT_CPU":        unix.RLIMIT_CPU,
	"RLIMIT_DATA":       unix.RLIMIT_DATA,
	"RLIMIT_FSIZE":      unix.RLIMIT_FSIZE,
	"RLIMIT_LOCKS":      unix.RLIMIT_LOCKS,
	"RLIMIT_MEMLOCK":    unix.RLIMIT_MEMLOCK,
	"RLIMIT_MSGQUEUE":   unix.RLIMIT_MSGQUEUE,
	"RLIMIT_NICE":       unix.RLIMIT_NICE,
	"RLIMIT_NOFILE":     unix.RLIMIT_NOFILE,
	"RLIMIT_NPROC":      unix.RLIMIT_NPROC,
	"RLIMIT_RSS":        unix.RLIMIT_RSS,
	"RLIMIT_RTPRIO":     unix.RLIMIT_RTPRIO,
	"RLIMIT_RTTIME":     unix.RLIMIT_RTTIME,
	"RLIMIT_SIGPENDING": unix.RLIMIT_SIGPENDING,
	"RLIMIT_STACK":      unix.RLIMIT_STACK,
}

RlimitsMap maps OCI rlimit types to unix flags.

Signals that proxy catches and forwards to init.

View Source
var SysctlDefault = map[string]string{
	"fs.file-max":                        "9223372036854775807",
	"kernel.panic_on_oops":               "1",
	"net.ipv6.conf.all.disable_ipv6":     "1",
	"net.ipv6.conf.default.disable_ipv6": "1",
	"vm.overcommit_memory":               "0",
	"vm.panic_on_oom":                    "0",
}

SysctlDefault defines default system settings.

View Source
var SysctlOverride = map[string]string{
	"kernel.kexec_load_disabled": "1",
}

SysctlOverride defines system settings that can't be changed.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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