github.com/criyle/go-sandbox@v0.10.3/cmd/runprog/config/config_type.go (about)

     1  package config
     2  
     3  // ProgramConfig defines the extra config apply to program type
     4  type ProgramConfig struct {
     5  	Syscall    SyscallConfig
     6  	FileAccess FileAccessConfig
     7  	RunCommand []string
     8  }
     9  
    10  // SyscallConfig defines extra syscallConfig apply to program type
    11  type SyscallConfig struct {
    12  	ExtraAllow, ExtraBan []string
    13  	ExtraCount           map[string]int
    14  }
    15  
    16  // FileAccessConfig defines extra file access permission for the program type
    17  type FileAccessConfig struct {
    18  	ExtraRead, ExtraWrite, ExtraStat, ExtraBan []string
    19  }