summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls/linux/BUILD
diff options
context:
space:
mode:
authorGoogler <noreply@google.com>2018-04-27 10:37:02 -0700
committerAdin Scannell <ascannell@google.com>2018-04-28 01:44:26 -0400
commitd02b74a5dcfed4bfc8f2f8e545bca4d2afabb296 (patch)
tree54f95eef73aee6bacbfc736fffc631be2605ed53 /pkg/sentry/syscalls/linux/BUILD
parentf70210e742919f40aa2f0934a22f1c9ba6dada62 (diff)
Check in gVisor.
PiperOrigin-RevId: 194583126 Change-Id: Ica1d8821a90f74e7e745962d71801c598c652463
Diffstat (limited to 'pkg/sentry/syscalls/linux/BUILD')
-rw-r--r--pkg/sentry/syscalls/linux/BUILD103
1 files changed, 103 insertions, 0 deletions
diff --git a/pkg/sentry/syscalls/linux/BUILD b/pkg/sentry/syscalls/linux/BUILD
new file mode 100644
index 000000000..bc67ebf30
--- /dev/null
+++ b/pkg/sentry/syscalls/linux/BUILD
@@ -0,0 +1,103 @@
+package(licenses = ["notice"]) # Apache 2.0
+
+load("@io_bazel_rules_go//go:def.bzl", "go_library")
+load("//tools/go_stateify:defs.bzl", "go_stateify")
+
+go_stateify(
+ name = "linux_state",
+ srcs = [
+ "sys_aio.go",
+ "sys_futex.go",
+ "sys_poll.go",
+ "sys_time.go",
+ ],
+ out = "linux_state.go",
+ package = "linux",
+)
+
+go_library(
+ name = "linux",
+ srcs = [
+ "error.go",
+ "flags.go",
+ "linux64.go",
+ "linux_state.go",
+ "sigset.go",
+ "sys_aio.go",
+ "sys_capability.go",
+ "sys_epoll.go",
+ "sys_eventfd.go",
+ "sys_file.go",
+ "sys_futex.go",
+ "sys_getdents.go",
+ "sys_identity.go",
+ "sys_inotify.go",
+ "sys_lseek.go",
+ "sys_mmap.go",
+ "sys_mount.go",
+ "sys_pipe.go",
+ "sys_poll.go",
+ "sys_prctl.go",
+ "sys_random.go",
+ "sys_read.go",
+ "sys_rlimit.go",
+ "sys_rusage.go",
+ "sys_sched.go",
+ "sys_sem.go",
+ "sys_signal.go",
+ "sys_socket.go",
+ "sys_stat.go",
+ "sys_sync.go",
+ "sys_sysinfo.go",
+ "sys_syslog.go",
+ "sys_thread.go",
+ "sys_time.go",
+ "sys_timer.go",
+ "sys_timerfd.go",
+ "sys_tls.go",
+ "sys_utsname.go",
+ "sys_write.go",
+ "timespec.go",
+ ],
+ importpath = "gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux",
+ visibility = ["//:sandbox"],
+ deps = [
+ "//pkg/abi",
+ "//pkg/abi/linux",
+ "//pkg/binary",
+ "//pkg/bpf",
+ "//pkg/eventchannel",
+ "//pkg/log",
+ "//pkg/metric",
+ "//pkg/sentry/arch",
+ "//pkg/sentry/context",
+ "//pkg/sentry/fs",
+ "//pkg/sentry/fs/anon",
+ "//pkg/sentry/fs/fsutil",
+ "//pkg/sentry/fs/lock",
+ "//pkg/sentry/fs/timerfd",
+ "//pkg/sentry/kernel",
+ "//pkg/sentry/kernel/auth",
+ "//pkg/sentry/kernel/epoll",
+ "//pkg/sentry/kernel/eventfd",
+ "//pkg/sentry/kernel/kdefs",
+ "//pkg/sentry/kernel/pipe",
+ "//pkg/sentry/kernel/sched",
+ "//pkg/sentry/kernel/semaphore",
+ "//pkg/sentry/kernel/time",
+ "//pkg/sentry/limits",
+ "//pkg/sentry/memmap",
+ "//pkg/sentry/mm",
+ "//pkg/sentry/safemem",
+ "//pkg/sentry/socket",
+ "//pkg/sentry/socket/control",
+ "//pkg/sentry/syscalls",
+ "//pkg/sentry/usage",
+ "//pkg/sentry/usermem",
+ "//pkg/state",
+ "//pkg/syserr",
+ "//pkg/syserror",
+ "//pkg/tcpip/transport/unix",
+ "//pkg/waiter",
+ ],
+)