@@ -243,12 +243,44 @@ type Seccomp struct {
243243// By default only the native architecture of the kernel is permitted
244244type Arch string
245245
246+ const (
247+ ArchX86 Arch = "SCMP_ARCH_X86"
248+ ArchX86_64 Arch = "SCMP_ARCH_X86_64"
249+ ArchX32 Arch = "SCMP_ARCH_X32"
250+ ArchARM Arch = "SCMP_ARCH_ARM"
251+ ArchAARCH64 Arch = "SCMP_ARCH_AARCH64"
252+ ArchMIPS Arch = "SCMP_ARCH_MIPS"
253+ ArchMIPS64 Arch = "SCMP_ARCH_MIPS64"
254+ ArchMIPS64N32 Arch = "SCMP_ARCH_MIPS64N32"
255+ ArchMIPSEL Arch = "SCMP_ARCH_MIPSEL"
256+ ArchMIPSEL64 Arch = "SCMP_ARCH_MIPSEL64"
257+ ArchMIPSEL64N32 Arch = "SCMP_ARCH_MIPSEL64N32"
258+ )
259+
246260// Action taken upon Seccomp rule match
247261type Action string
248262
263+ const (
264+ ActKill Action = "SCMP_ACT_KILL"
265+ ActTrap Action = "SCMP_ACT_TRAP"
266+ ActErrno Action = "SCMP_ACT_ERRNO"
267+ ActTrace Action = "SCMP_ACT_TRACE"
268+ ActAllow Action = "SCMP_ACT_ALLOW"
269+ )
270+
249271// Operator used to match syscall arguments in Seccomp
250272type Operator string
251273
274+ const (
275+ OpNotEqual Operator = "SCMP_CMP_NE"
276+ OpLessThan Operator = "SCMP_CMP_LT"
277+ OpLessEqual Operator = "SCMP_CMP_LE"
278+ OpEqualTo Operator = "SCMP_CMP_EQ"
279+ OpGreaterEqual Operator = "SCMP_CMP_GE"
280+ OpGreaterThan Operator = "SCMP_CMP_GT"
281+ OpMaskedEqual Operator = "SCMP_CMP_MASKED_EQ"
282+ )
283+
252284// Arg used for matching specific syscall arguments in Seccomp
253285type Arg struct {
254286 Index uint `json:"index"`
0 commit comments