load("//tools:defs.bzl", "go_library")

package(licenses = ["notice"])

go_library(
    name = "linux",
    srcs = [
        "error.go",
        "flags.go",
        "linux64.go",
        "sigset.go",
        "sys_aio.go",
        "sys_capability.go",
        "sys_clone_amd64.go",
        "sys_clone_arm64.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_mempolicy.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_rseq.go",
        "sys_rusage.go",
        "sys_sched.go",
        "sys_seccomp.go",
        "sys_sem.go",
        "sys_shm.go",
        "sys_signal.go",
        "sys_socket.go",
        "sys_splice.go",
        "sys_stat.go",
        "sys_stat_amd64.go",
        "sys_stat_arm64.go",
        "sys_sync.go",
        "sys_sysinfo.go",
        "sys_syslog.go",
        "sys_thread.go",
        "sys_time.go",
        "sys_timer.go",
        "sys_timerfd.go",
        "sys_tls_amd64.go",
        "sys_tls_arm64.go",
        "sys_utsname.go",
        "sys_write.go",
        "sys_xattr.go",
        "timespec.go",
    ],
    visibility = ["//:sandbox"],
    deps = [
        "//pkg/abi",
        "//pkg/abi/linux",
        "//pkg/binary",
        "//pkg/bpf",
        "//pkg/context",
        "//pkg/log",
        "//pkg/metric",
        "//pkg/rand",
        "//pkg/safemem",
        "//pkg/sentry/arch",
        "//pkg/sentry/fs",
        "//pkg/sentry/fs/anon",
        "//pkg/sentry/fs/lock",
        "//pkg/sentry/fs/timerfd",
        "//pkg/sentry/fs/tmpfs",
        "//pkg/sentry/fsbridge",
        "//pkg/sentry/kernel",
        "//pkg/sentry/kernel/auth",
        "//pkg/sentry/kernel/epoll",
        "//pkg/sentry/kernel/eventfd",
        "//pkg/sentry/kernel/fasync",
        "//pkg/sentry/kernel/pipe",
        "//pkg/sentry/kernel/sched",
        "//pkg/sentry/kernel/shm",
        "//pkg/sentry/kernel/signalfd",
        "//pkg/sentry/kernel/time",
        "//pkg/sentry/limits",
        "//pkg/sentry/loader",
        "//pkg/sentry/memmap",
        "//pkg/sentry/mm",
        "//pkg/sentry/socket",
        "//pkg/sentry/socket/control",
        "//pkg/sentry/socket/unix/transport",
        "//pkg/sentry/syscalls",
        "//pkg/sentry/usage",
        "//pkg/sentry/vfs",
        "//pkg/sync",
        "//pkg/syserr",
        "//pkg/syserror",
        "//pkg/usermem",
        "//pkg/waiter",
    ],
)