Documentation
¶
Index ¶
- Constants
- func ApplySandbox(cfg *SandboxConfig) error
- func Available() bool
- func GetABI() int
- func MustAllowPath(cfg *SandboxConfig, path string, access uint64)
- func MustAllowTCPPort(cfg *SandboxConfig, port uint16)
- type FSRule
- type IPCRule
- type NetPortAttr
- type NetRule
- type PathBeneathAttr
- type RulesetAttr
- type SandboxConfig
Constants ¶
View Source
const ( LandlockAccessFSExecute = 1 << 0 LandlockAccessFSWriteFile = 1 << 1 LandlockAccessFSReadFile = 1 << 2 LandlockAccessFSReadDir = 1 << 3 LandlockAccessFSRemoveDir = 1 << 4 LandlockAccessFSRemoveFile = 1 << 5 LandlockAccessFSMakeChar = 1 << 6 LandlockAccessFSMakeDir = 1 << 7 LandlockAccessFSMakeReg = 1 << 8 LandlockAccessFSMakeSock = 1 << 9 LandlockAccessFSMakeFIFO = 1 << 10 LandlockAccessFSMakeBlock = 1 << 11 LandlockAccessFSMakeSym = 1 << 12 LandlockAccessFSRefer = 1 << 13 LandlockAccessFSTruncate = 1 << 14 LandlockAccessFSIoctlDev = 1 << 15 LandlockAccessFSResolveUnix = 1 << 16 LandlockAccessNetBindTCP = 1 << 0 LandlockAccessNetConnectTCP = 1 << 1 LandlockScopeAbstractUnixSocket = 1 << 0 LandlockScopeSignal = 1 << 1 LandlockRulePathBeneath = 1 LandlockRuleNetPort = 2 )
Variables ¶
This section is empty.
Functions ¶
func ApplySandbox ¶
func ApplySandbox(cfg *SandboxConfig) error
func MustAllowPath ¶
func MustAllowPath(cfg *SandboxConfig, path string, access uint64)
func MustAllowTCPPort ¶
func MustAllowTCPPort(cfg *SandboxConfig, port uint16)
Types ¶
type NetPortAttr ¶
type PathBeneathAttr ¶
type RulesetAttr ¶
type SandboxConfig ¶
func DefaultContainerSandbox ¶
func DefaultContainerSandbox(rootfs string, ports []uint16) *SandboxConfig
Click to show internal directories.
Click to hide internal directories.