2019-01-31 19:11:44 +00:00
|
|
|
package(licenses = ["notice"])
|
2018-04-27 17:37:02 +00:00
|
|
|
|
2018-08-02 17:41:44 +00:00
|
|
|
load("//tools/go_stateify:defs.bzl", "go_library", "go_test")
|
2018-04-27 17:37:02 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "limits",
|
|
|
|
srcs = [
|
|
|
|
"context.go",
|
|
|
|
"limits.go",
|
|
|
|
"linux.go",
|
|
|
|
],
|
|
|
|
importpath = "gvisor.googlesource.com/gvisor/pkg/sentry/limits",
|
|
|
|
visibility = ["//:sandbox"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/abi/linux",
|
|
|
|
"//pkg/sentry/context",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "limits_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = [
|
|
|
|
"limits_test.go",
|
|
|
|
],
|
|
|
|
embed = [":limits"],
|
|
|
|
)
|