summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux/BUILD
blob: 114b516e23aa47f920fa52efa8f940f59a146109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
load("//tools:defs.bzl", "go_library", "go_test")

# Package linux contains the constants and types needed to interface with a
# Linux kernel. It should be used instead of syscall or golang.org/x/sys/unix
# when the host OS may not be Linux.

package(licenses = ["notice"])

go_library(
    name = "linux",
    srcs = [
        "aio.go",
        "arch_amd64.go",
        "audit.go",
        "bpf.go",
        "capability.go",
        "clone.go",
        "dev.go",
        "elf.go",
        "epoll.go",
        "epoll_amd64.go",
        "epoll_arm64.go",
        "errors.go",
        "eventfd.go",
        "exec.go",
        "fcntl.go",
        "file.go",
        "file_amd64.go",
        "file_arm64.go",
        "fs.go",
        "futex.go",
        "inotify.go",
        "ioctl.go",
        "ioctl_tun.go",
        "ip.go",
        "ipc.go",
        "limits.go",
        "linux.go",
        "mm.go",
        "netdevice.go",
        "netfilter.go",
        "netlink.go",
        "netlink_route.go",
        "poll.go",
        "prctl.go",
        "ptrace.go",
        "ptrace_amd64.go",
        "ptrace_arm64.go",
        "rseq.go",
        "rusage.go",
        "sched.go",
        "seccomp.go",
        "sem.go",
        "shm.go",
        "signal.go",
        "signalfd.go",
        "socket.go",
        "splice.go",
        "tcp.go",
        "time.go",
        "timer.go",
        "tty.go",
        "uio.go",
        "utsname.go",
        "wait.go",
        "xattr.go",
    ],
    marshal = True,
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/abi",
        "//pkg/binary",
        "//pkg/bits",
    ],
)

go_test(
    name = "linux_test",
    size = "small",
    srcs = ["netfilter_test.go"],
    library = ":linux",
    deps = [
        "//pkg/binary",
    ],
)