2019-09-12 22:09:01 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
|
|
|
|
2019-01-31 19:11:44 +00:00
|
|
|
package(licenses = ["notice"])
|
2018-10-23 07:19:11 +00:00
|
|
|
|
2019-09-12 22:09:01 +00:00
|
|
|
load("//tools/go_stateify:defs.bzl", "go_library")
|
2019-04-01 22:38:08 +00:00
|
|
|
|
2018-04-27 17:37:02 +00:00
|
|
|
go_library(
|
|
|
|
name = "device",
|
|
|
|
srcs = ["device.go"],
|
2019-06-13 23:49:09 +00:00
|
|
|
importpath = "gvisor.dev/gvisor/pkg/sentry/device",
|
2018-04-27 17:37:02 +00:00
|
|
|
visibility = ["//pkg/sentry:internal"],
|
|
|
|
deps = ["//pkg/abi/linux"],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "device_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["device_test.go"],
|
|
|
|
embed = [":device"],
|
|
|
|
)
|