Fix golint warnings
Codes in specs should be decent, first of all should make golint happy. Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
parent
4066d59d29
commit
f4db3f1b8e
|
@ -243,10 +243,11 @@ type Seccomp struct {
|
||||||
Syscalls []*Syscall `json:"syscalls"`
|
Syscalls []*Syscall `json:"syscalls"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Additional architectures permitted to be used for system calls
|
// Arch used for additional architectures
|
||||||
// By default only the native architecture of the kernel is permitted
|
|
||||||
type Arch string
|
type Arch string
|
||||||
|
|
||||||
|
// Additional architectures permitted to be used for system calls
|
||||||
|
// By default only the native architecture of the kernel is permitted
|
||||||
const (
|
const (
|
||||||
ArchX86 Arch = "SCMP_ARCH_X86"
|
ArchX86 Arch = "SCMP_ARCH_X86"
|
||||||
ArchX86_64 Arch = "SCMP_ARCH_X86_64"
|
ArchX86_64 Arch = "SCMP_ARCH_X86_64"
|
||||||
|
@ -264,6 +265,7 @@ const (
|
||||||
// Action taken upon Seccomp rule match
|
// Action taken upon Seccomp rule match
|
||||||
type Action string
|
type Action string
|
||||||
|
|
||||||
|
// Define actions for Seccomp rules
|
||||||
const (
|
const (
|
||||||
ActKill Action = "SCMP_ACT_KILL"
|
ActKill Action = "SCMP_ACT_KILL"
|
||||||
ActTrap Action = "SCMP_ACT_TRAP"
|
ActTrap Action = "SCMP_ACT_TRAP"
|
||||||
|
@ -275,6 +277,7 @@ const (
|
||||||
// Operator used to match syscall arguments in Seccomp
|
// Operator used to match syscall arguments in Seccomp
|
||||||
type Operator string
|
type Operator string
|
||||||
|
|
||||||
|
// Define operators for syscall arguments in Seccomp
|
||||||
const (
|
const (
|
||||||
OpNotEqual Operator = "SCMP_CMP_NE"
|
OpNotEqual Operator = "SCMP_CMP_NE"
|
||||||
OpLessThan Operator = "SCMP_CMP_LT"
|
OpLessThan Operator = "SCMP_CMP_LT"
|
||||||
|
|
Loading…
Reference in New Issue