Skip to content

Commit

Permalink
Fix CI lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gizahNL committed Jun 4, 2021
1 parent 89d5243 commit 70c7e47
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions cmd/runj-entrypoint/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import (
"strconv"
"syscall"

"go.sbk.wtf/runj/state"
"go.sbk.wtf/runj/pkg/gojail"
"go.sbk.wtf/runj/state"

"github.com/containerd/console"
"golang.org/x/sys/unix"
Expand Down Expand Up @@ -165,4 +165,3 @@ func dupStdio(slavePath string) error {
}
return nil
}

2 changes: 1 addition & 1 deletion cmd/runj/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (

"go.sbk.wtf/runj/jail"
"go.sbk.wtf/runj/oci"
"go.sbk.wtf/runj/pkg/gojail"
"go.sbk.wtf/runj/runtimespec"
"go.sbk.wtf/runj/state"
"go.sbk.wtf/runj/pkg/gojail"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/runj/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"go.sbk.wtf/runj/jail"
"go.sbk.wtf/runj/oci"
"go.sbk.wtf/runj/pkg/gojail"
"go.sbk.wtf/runj/runtimespec"
"go.sbk.wtf/runj/state"
"go.sbk.wtf/runj/pkg/gojail"

"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/gojail/createchildjail.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func forkAndCreateChildJail(parentID, iovecs, niovecs, errbufptr uintptr, pipe i
return int(r1), 0
}

r1, _, err1 = syscall.RawSyscall(syscall.SYS_JAIL_ATTACH, uintptr(parentID), 0, 0)
_, _, err1 = syscall.RawSyscall(syscall.SYS_JAIL_ATTACH, parentID, 0, 0)
if err1 != 0 {
goto childerror
}
Expand All @@ -46,7 +46,7 @@ func forkAndCreateChildJail(parentID, iovecs, niovecs, errbufptr uintptr, pipe i
childerror:
syscall.RawSyscall(syscall.SYS_WRITE, uintptr(pipe), uintptr(unsafe.Pointer(&err1)), unsafe.Sizeof(err1))
if sendmsg {
syscall.RawSyscall(syscall.SYS_WRITE, uintptr(pipe), uintptr(errbufptr), errormsglen)
syscall.RawSyscall(syscall.SYS_WRITE, uintptr(pipe), errbufptr, errormsglen)
}
for {
syscall.RawSyscall(syscall.SYS_EXIT, 253, 0, 0)
Expand Down

0 comments on commit 70c7e47

Please sign in to comment.