diff options
author | Bin Lu <bin.lu@arm.com> | 2019-05-03 22:02:51 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-05-03 22:03:59 -0700 |
commit | ebe2f78d9bc8639f0967c08777a3c9431ac44700 (patch) | |
tree | fd0df799dc3dff06549d7c7fedfb04d24ef5f31f /pkg/seccomp/seccomp_unsafe.go | |
parent | bf0ac565d2873069799082ad7bc3e3c43acbc593 (diff) |
Add arm64 support to pkg/seccomp
Signed-off-by: Bin Lu <bin.lu@arm.com>
PiperOrigin-RevId: 246622505
Change-Id: I803639a0c5b0f75959c64fee5385314214834d10
Diffstat (limited to 'pkg/seccomp/seccomp_unsafe.go')
-rw-r--r-- | pkg/seccomp/seccomp_unsafe.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/pkg/seccomp/seccomp_unsafe.go b/pkg/seccomp/seccomp_unsafe.go index ccd40d9db..ebb6397e8 100644 --- a/pkg/seccomp/seccomp_unsafe.go +++ b/pkg/seccomp/seccomp_unsafe.go @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build amd64 - package seccomp import ( @@ -65,9 +63,6 @@ func isKillProcessAvailable() (bool, error) { // //go:nosplit func seccomp(op, flags uint32, ptr unsafe.Pointer) syscall.Errno { - // SYS_SECCOMP is not available in syscall package. - const SYS_SECCOMP = 317 - if _, _, errno := syscall.RawSyscall(SYS_SECCOMP, uintptr(op), uintptr(flags), uintptr(ptr)); errno != 0 { return errno } |