mirror of
https://github.com/criyle/go-sandbox.git
synced 2025-11-04 14:49:53 +08:00
20 lines
517 B
Go
20 lines
517 B
Go
package config
|
|
|
|
// ProgramConfig defines the extra config apply to program type
|
|
type ProgramConfig struct {
|
|
Syscall SyscallConfig
|
|
FileAccess FileAccessConfig
|
|
RunCommand []string
|
|
}
|
|
|
|
// SyscallConfig defines extra syscallConfig apply to program type
|
|
type SyscallConfig struct {
|
|
ExtraAllow, ExtraBan []string
|
|
ExtraCount map[string]int
|
|
}
|
|
|
|
// FileAccessConfig defines extra file access permission for the program type
|
|
type FileAccessConfig struct {
|
|
ExtraRead, ExtraWrite, ExtraStat, ExtraBan []string
|
|
}
|