summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/BUILD
diff options
context:
space:
mode:
authorBrian Geffon <bgeffon@google.com>2018-12-26 11:24:29 -0800
committerShentubot <shentubot@google.com>2018-12-26 11:26:28 -0800
commitbfa2f314ca05854b0d08aa2f5c2b93b16542d95f (patch)
tree41a42ad8a321171560513cea79faa2db946a48a9 /pkg/sentry/kernel/BUILD
parent0df0df35fc4aa4d69dc01f7c7e2d9e0530a34db7 (diff)
Add EventChannel messages for uncaught signals.
PiperOrigin-RevId: 226936778 Change-Id: I2a6dda157c55d39d81e1b543ab11a58a0bfe5c05
Diffstat (limited to 'pkg/sentry/kernel/BUILD')
-rw-r--r--pkg/sentry/kernel/BUILD18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/BUILD b/pkg/sentry/kernel/BUILD
index 10d7b97c2..490f674c0 100644
--- a/pkg/sentry/kernel/BUILD
+++ b/pkg/sentry/kernel/BUILD
@@ -1,3 +1,5 @@
+load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
+
package(licenses = ["notice"]) # Apache 2.0
load("//tools/go_generics:defs.bzl", "go_template_instance")
@@ -62,6 +64,21 @@ go_template_instance(
},
)
+proto_library(
+ name = "uncaught_signal_proto",
+ srcs = ["uncaught_signal.proto"],
+ visibility = ["//visibility:public"],
+ deps = ["//pkg/sentry/arch:registers_proto"],
+)
+
+go_proto_library(
+ name = "uncaught_signal_go_proto",
+ importpath = "gvisor.googlesource.com/gvisor/pkg/sentry/kernel/uncaught_signal_go_proto",
+ proto = ":uncaught_signal_proto",
+ visibility = ["//visibility:public"],
+ deps = ["//pkg/sentry/arch:registers_go_proto"],
+)
+
go_library(
name = "kernel",
srcs = [
@@ -122,6 +139,7 @@ go_library(
],
visibility = ["//:sandbox"],
deps = [
+ ":uncaught_signal_go_proto",
"//pkg/abi",
"//pkg/abi/linux",
"//pkg/amutex",