config

package
v0.0.0-...-c269f4c Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConf

func GetConf(pType, workPath string, args, addRead, addWrite []string,
	allowProc bool) ([]string, []string, []string, *filehandler.Handler)

GetConf return file access check set, syscall counter, allow and traced syscall arrays and new args

Types

type FileAccessConfig

type FileAccessConfig struct {
	ExtraRead, ExtraWrite, ExtraStat, ExtraBan []string
}

FileAccessConfig defines extra file access permission for the program type

type ProgramConfig

type ProgramConfig struct {
	Syscall    SyscallConfig
	FileAccess FileAccessConfig
	RunCommand []string
}

ProgramConfig defines the extra config apply to program type

type SyscallConfig

type SyscallConfig struct {
	ExtraAllow, ExtraBan []string
	ExtraCount           map[string]int
}

SyscallConfig defines extra syscallConfig apply to program type

Jump to

Keyboard shortcuts

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