diff options
author | Zyad A. Ali <zyad.ali.me@gmail.com> | 2021-05-31 17:31:40 +0200 |
---|---|---|
committer | Zyad A. Ali <zyad.ali.me@gmail.com> | 2021-07-13 22:12:02 +0200 |
commit | 7c488fcfe8a5fd17f99f1c88c29ce97f5851f786 (patch) | |
tree | 6fe178d73a4ab7bbdc41c81945d1c43e23c4f557 /pkg/sentry/kernel/msgqueue/BUILD | |
parent | c8851be593a7f0a8c22f53e44d2d46d71c3c142d (diff) |
Create package msgqueue.
Create package msgqueue, define primitives to be used for message
queues, and add a msgqueue.Registry to IPCNamespace.
Updates #135
Diffstat (limited to 'pkg/sentry/kernel/msgqueue/BUILD')
-rw-r--r-- | pkg/sentry/kernel/msgqueue/BUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/msgqueue/BUILD b/pkg/sentry/kernel/msgqueue/BUILD new file mode 100644 index 000000000..dfe937e78 --- /dev/null +++ b/pkg/sentry/kernel/msgqueue/BUILD @@ -0,0 +1,32 @@ +load("//tools:defs.bzl", "go_library") +load("//tools/go_generics:defs.bzl", "go_template_instance") + +package(licenses = ["notice"]) + +go_template_instance( + name = "message_list", + out = "message_list.go", + package = "msgqueue", + prefix = "msg", + template = "//pkg/ilist:generic_list", + types = { + "Element": "*Message", + "Linker": "*Message", + }, +) + +go_library( + name = "msgqueue", + srcs = [ + "msgqueue.go", + "message_list.go", + ], + visibility = ["//pkg/sentry:internal"], + deps = [ + "//pkg/sentry/kernel/auth", + "//pkg/sentry/kernel/ipc", + "//pkg/sentry/kernel/time", + "//pkg/waiter", + "//pkg/sync", + ], +) |