Skip to content

Commit

Permalink
Merge pull request opencontainers#254 from hqhq/hq_fix_golint
Browse files Browse the repository at this point in the history
Fix golint warnings
  • Loading branch information
vbatts committed Nov 19, 2015
2 parents 4066d59 + f4db3f1 commit 8d66fdd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions runtime_config_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,11 @@ type Seccomp struct {
Syscalls []*Syscall `json:"syscalls"`
}

// Additional architectures permitted to be used for system calls
// By default only the native architecture of the kernel is permitted
// Arch used for additional architectures
type Arch string

// Additional architectures permitted to be used for system calls
// By default only the native architecture of the kernel is permitted
const (
ArchX86 Arch = "SCMP_ARCH_X86"
ArchX86_64 Arch = "SCMP_ARCH_X86_64"
Expand All @@ -264,6 +265,7 @@ const (
// Action taken upon Seccomp rule match
type Action string

// Define actions for Seccomp rules
const (
ActKill Action = "SCMP_ACT_KILL"
ActTrap Action = "SCMP_ACT_TRAP"
Expand All @@ -275,6 +277,7 @@ const (
// Operator used to match syscall arguments in Seccomp
type Operator string

// Define operators for syscall arguments in Seccomp
const (
OpNotEqual Operator = "SCMP_CMP_NE"
OpLessThan Operator = "SCMP_CMP_LT"
Expand Down

0 comments on commit 8d66fdd

Please sign in to comment.