diff options
author | Zach Koopmans <zkoopmans@google.com> | 2021-03-29 13:28:32 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-03-29 13:30:21 -0700 |
commit | 8a2f7e716dcc62f04d2808e8ade34941c94fc956 (patch) | |
tree | b2195d5728dcbc4f4e59c23ad95d7486ef744371 /pkg/seccomp | |
parent | b125afba416ebeba906ea595a44a55afe4729d64 (diff) |
[syserror] Split usermem package
Split usermem package to help remove syserror dependency in go_marshal.
New hostarch package contains code not dependent on syserror.
PiperOrigin-RevId: 365651233
Diffstat (limited to 'pkg/seccomp')
-rw-r--r-- | pkg/seccomp/BUILD | 2 | ||||
-rw-r--r-- | pkg/seccomp/seccomp_test.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pkg/seccomp/BUILD b/pkg/seccomp/BUILD index 201dd072f..169fc0ac3 100644 --- a/pkg/seccomp/BUILD +++ b/pkg/seccomp/BUILD @@ -54,6 +54,6 @@ go_test( deps = [ "//pkg/abi/linux", "//pkg/bpf", - "//pkg/usermem", + "//pkg/hostarch", ], ) diff --git a/pkg/seccomp/seccomp_test.go b/pkg/seccomp/seccomp_test.go index db06d1f1b..68feddf31 100644 --- a/pkg/seccomp/seccomp_test.go +++ b/pkg/seccomp/seccomp_test.go @@ -29,7 +29,7 @@ import ( "gvisor.dev/gvisor/pkg/abi/linux" "gvisor.dev/gvisor/pkg/bpf" - "gvisor.dev/gvisor/pkg/usermem" + "gvisor.dev/gvisor/pkg/hostarch" ) // newVictim makes a victim binary. @@ -57,7 +57,7 @@ func dataAsInput(d *linux.SeccompData) bpf.Input { d.MarshalUnsafe(buf) return bpf.InputBytes{ Data: buf, - Order: usermem.ByteOrder, + Order: hostarch.ByteOrder, } } |