gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/sentry/syscalls/linux/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package( 4 default_applicable_licenses = ["//:license"], 5 licenses = ["notice"], 6 ) 7 8 go_library( 9 name = "linux", 10 srcs = [ 11 "error.go", 12 "linux64.go", 13 "path.go", 14 "points.go", 15 "sigset.go", 16 "sys_afs_syscall.go", 17 "sys_aio.go", 18 "sys_capability.go", 19 "sys_clone_amd64.go", 20 "sys_clone_arm64.go", 21 "sys_epoll.go", 22 "sys_eventfd.go", 23 "sys_file.go", 24 "sys_futex.go", 25 "sys_getdents.go", 26 "sys_identity.go", 27 "sys_inotify.go", 28 "sys_iouring.go", 29 "sys_key.go", 30 "sys_membarrier.go", 31 "sys_mempolicy.go", 32 "sys_mmap.go", 33 "sys_mount.go", 34 "sys_mq.go", 35 "sys_msgqueue.go", 36 "sys_pipe.go", 37 "sys_poll.go", 38 "sys_prctl.go", 39 "sys_process_vm.go", 40 "sys_random.go", 41 "sys_read_write.go", 42 "sys_rlimit.go", 43 "sys_rseq.go", 44 "sys_rusage.go", 45 "sys_sched.go", 46 "sys_seccomp.go", 47 "sys_sem.go", 48 "sys_shm.go", 49 "sys_signal.go", 50 "sys_socket.go", 51 "sys_splice.go", 52 "sys_stat.go", 53 "sys_stat_amd64.go", 54 "sys_stat_arm64.go", 55 "sys_sync.go", 56 "sys_sysinfo.go", 57 "sys_syslog.go", 58 "sys_thread.go", 59 "sys_time.go", 60 "sys_timer.go", 61 "sys_timerfd.go", 62 "sys_tls_amd64.go", 63 "sys_tls_arm64.go", 64 "sys_utsname.go", 65 "sys_xattr.go", 66 "timespec.go", 67 ], 68 marshal = True, 69 visibility = ["//:sandbox"], 70 deps = [ 71 "//pkg/abi", 72 "//pkg/abi/linux", 73 "//pkg/atomicbitops", 74 "//pkg/bits", 75 "//pkg/bpf", 76 "//pkg/context", 77 "//pkg/errors/linuxerr", 78 "//pkg/fspath", 79 "//pkg/gohacks", 80 "//pkg/hostarch", 81 "//pkg/log", 82 "//pkg/marshal", 83 "//pkg/marshal/primitive", 84 "//pkg/metric", 85 "//pkg/rand", 86 "//pkg/safemem", 87 "//pkg/sentry/arch", 88 "//pkg/sentry/fsimpl/eventfd", 89 "//pkg/sentry/fsimpl/host", 90 "//pkg/sentry/fsimpl/iouringfs", 91 "//pkg/sentry/fsimpl/lock", 92 "//pkg/sentry/fsimpl/pipefs", 93 "//pkg/sentry/fsimpl/signalfd", 94 "//pkg/sentry/fsimpl/timerfd", 95 "//pkg/sentry/fsimpl/tmpfs", 96 "//pkg/sentry/kernel", 97 "//pkg/sentry/kernel/auth", 98 "//pkg/sentry/kernel/fasync", 99 "//pkg/sentry/kernel/ipc", 100 "//pkg/sentry/kernel/mq", 101 "//pkg/sentry/kernel/msgqueue", 102 "//pkg/sentry/kernel/pipe", 103 "//pkg/sentry/kernel/sched", 104 "//pkg/sentry/kernel/shm", 105 "//pkg/sentry/kernel/time", 106 "//pkg/sentry/limits", 107 "//pkg/sentry/loader", 108 "//pkg/sentry/memmap", 109 "//pkg/sentry/mm", 110 "//pkg/sentry/seccheck", 111 "//pkg/sentry/seccheck/points:points_go_proto", 112 "//pkg/sentry/socket", 113 "//pkg/sentry/socket/control", 114 "//pkg/sentry/socket/unix/transport", 115 "//pkg/sentry/syscalls", 116 "//pkg/sentry/usage", 117 "//pkg/sentry/vfs", 118 "//pkg/sync", 119 "//pkg/syserr", 120 "//pkg/usermem", 121 "//pkg/waiter", 122 "@org_golang_google_protobuf//proto:go_default_library", 123 "@org_golang_x_sys//unix:go_default_library", 124 ], 125 ) 126 127 go_test( 128 name = "linux_test", 129 size = "small", 130 srcs = [ 131 "linux64_amd64_test.go", 132 "linux64_arm64_test.go", 133 "linux64_test.go", 134 ], 135 library = ":linux", 136 deps = ["//pkg/sentry/seccheck"], 137 )