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
86
87
|
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "external_iptables_license"
// to get the below license kinds:
// SPDX-license-identifier-Artistic
// SPDX-license-identifier-Artistic-2.0
// SPDX-license-identifier-GPL
// SPDX-license-identifier-GPL-2.0
// SPDX-license-identifier-LGPL
default_applicable_licenses: ["external_iptables_license"],
}
cc_defaults {
name: "iptables_cmd_defaults",
defaults: ["iptables_defaults"],
cflags: [
"-Wno-missing-field-initializers",
"-Wno-parentheses-equality",
"-DNO_SHARED_LIBS=1",
"-DALL_INCLUSIVE",
"-DXTABLES_INTERNAL",
],
header_libs: ["iptables_config_header"],
required: ["xtables.lock"],
srcs: [
"xtables-legacy-multi.c",
"iptables-xml.c",
"xshared.c",
],
static_libs: [
"libext",
"libxtables",
],
}
//----------------------------------------------------------------
// The iptables lock file
prebuilt_etc {
name: "xtables.lock",
src: "xtables.lock",
}
//----------------------------------------------------------------
// iptables
cc_binary {
name: "iptables",
defaults: ["iptables_cmd_defaults"],
srcs: [
"iptables-save.c",
"iptables-restore.c",
"iptables-standalone.c",
"iptables.c",
"ip6tables-standalone.c",
"ip6tables.c",
],
static_libs: [
"libext4",
"libext6",
"libip4tc",
"libip6tc",
],
symlinks: [
"iptables-save",
"iptables-restore",
"ip6tables",
"ip6tables-save",
"ip6tables-restore",
],
sanitize: {
memtag_heap: true,
},
}
//----------------------------------------------------------------
|