mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
42 lines
821 B
Python
42 lines
821 B
Python
load("//pkg/sync/locking:locking.bzl", "declare_mutex")
|
|
load("//tools:defs.bzl", "go_library")
|
|
|
|
package(
|
|
default_applicable_licenses = ["//:license"],
|
|
licenses = ["notice"],
|
|
)
|
|
|
|
declare_mutex(
|
|
name = "reg_mutex",
|
|
out = "reg_mutex.go",
|
|
package = "fasync",
|
|
prefix = "reg",
|
|
)
|
|
|
|
declare_mutex(
|
|
name = "file_mutex",
|
|
out = "file_mutex.go",
|
|
package = "fasync",
|
|
prefix = "file",
|
|
)
|
|
|
|
go_library(
|
|
name = "fasync",
|
|
srcs = [
|
|
"fasync.go",
|
|
"file_mutex.go",
|
|
"reg_mutex.go",
|
|
],
|
|
visibility = ["//:sandbox"],
|
|
deps = [
|
|
"//pkg/abi/linux",
|
|
"//pkg/errors/linuxerr",
|
|
"//pkg/sentry/kernel",
|
|
"//pkg/sentry/kernel/auth",
|
|
"//pkg/sentry/vfs",
|
|
"//pkg/sync",
|
|
"//pkg/sync/locking",
|
|
"//pkg/waiter",
|
|
],
|
|
)
|