Files
Etienne PerotandgVisor bot f8b9824813 Update unimpl.EmitUnimplementedEvent interface to add the syscall number.
This catches up the interface to the `EmitUnimplementedEvent` method signature
on `kernel.Kernel`.

Also add build-time test to verify that `kernel.Kernel` implements this
interface, in order to catch such breakages at build time in the future.

PiperOrigin-RevId: 519000411
2023-03-23 17:01:37 -07:00

33 lines
646 B
Python

load("//tools:defs.bzl", "go_library", "go_test", "proto_library")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
proto_library(
name = "unimplemented_syscall",
srcs = ["unimplemented_syscall.proto"],
visibility = ["//visibility:public"],
deps = ["//pkg/sentry/arch:registers_proto"],
)
go_library(
name = "unimpl",
srcs = ["events.go"],
visibility = ["//:sandbox"],
deps = [
"//pkg/context",
"//pkg/log",
],
)
go_test(
name = "events_test",
srcs = ["events_test.go"],
deps = [
":unimpl",
"//pkg/sentry/kernel",
],
)