gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/abi/linux/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  # Package linux contains the constants and types needed to interface with a
     4  # Linux kernel. It should be used instead of syscall or golang.org/x/sys/unix
     5  # when the host OS may not be Linux.
     6  
     7  package(
     8      default_applicable_licenses = ["//:license"],
     9      licenses = ["notice"],
    10  )
    11  
    12  go_library(
    13      name = "linux",
    14      srcs = [
    15          "aio.go",
    16          "arch_amd64.go",
    17          "audit.go",
    18          "bpf.go",
    19          "capability.go",
    20          "clone.go",
    21          "context.go",
    22          "dev.go",
    23          "elf.go",
    24          "epoll.go",
    25          "epoll_amd64.go",
    26          "epoll_arm64.go",
    27          "errqueue.go",
    28          "eventfd.go",
    29          "exec.go",
    30          "fadvise.go",
    31          "fcntl.go",
    32          "file.go",
    33          "file_amd64.go",
    34          "file_arm64.go",
    35          "fs.go",
    36          "fuse.go",
    37          "futex.go",
    38          "inotify.go",
    39          "ioctl.go",
    40          "ioctl_tun.go",
    41          "iouring.go",
    42          "ip.go",
    43          "ipc.go",
    44          "keyctl.go",
    45          "limits.go",
    46          "linux.go",
    47          "membarrier.go",
    48          "mm.go",
    49          "mm_amd64.go",
    50          "mm_arm64.go",
    51          "mqueue.go",
    52          "msgqueue.go",
    53          "netdevice.go",
    54          "netfilter.go",
    55          "netfilter_ipv6.go",
    56          "netlink.go",
    57          "netlink_route.go",
    58          "poll.go",
    59          "prctl.go",
    60          "ptrace.go",
    61          "ptrace_amd64.go",
    62          "ptrace_arm64.go",
    63          "rseq.go",
    64          "rusage.go",
    65          "sched.go",
    66          "seccomp.go",
    67          "sem.go",
    68          "sem_amd64.go",
    69          "sem_arm64.go",
    70          "shm.go",
    71          "signal.go",
    72          "signalfd.go",
    73          "socket.go",
    74          "splice.go",
    75          "tcp.go",
    76          "time.go",
    77          "timer.go",
    78          "tty.go",
    79          "uio.go",
    80          "utsname.go",
    81          "vfio.go",
    82          "vfio_unsafe.go",
    83          "wait.go",
    84          "xattr.go",
    85      ],
    86      marshal = True,
    87      visibility = ["//visibility:public"],
    88      deps = [
    89          "//pkg/abi",
    90          "//pkg/bits",
    91          "//pkg/context",
    92          "//pkg/hostarch",
    93          "//pkg/marshal",
    94          "//pkg/marshal/primitive",
    95          "@org_golang_x_sys//unix:go_default_library",
    96      ],
    97  )
    98  
    99  go_test(
   100      name = "linux_test",
   101      size = "small",
   102      srcs = [
   103          "netfilter_test.go",
   104      ],
   105      library = ":linux",
   106  )