blob: 51988727d4594d65a900851ab7444940835c53e9 [file] [log] [blame]
Bob Badourd69ad692021-02-16 19:02:14 -08001package {
Elliott Hughes813fd6d2021-06-25 14:42:51 -07002 default_applicable_licenses: ["Android-Apache-2.0"],
Bob Badourd69ad692021-02-16 19:02:14 -08003}
4
Josh Gaocbe70cb2016-10-18 18:17:52 -07005cc_defaults {
6 name: "debuggerd_defaults",
7 cflags: [
8 "-Wall",
9 "-Wextra",
Josh Gaoc7fe0602017-03-13 14:13:29 -070010 "-Werror",
Kalesh Singha9ea7e52021-06-17 15:49:50 -040011 "-Wno-gcc-compat",
Josh Gao2b2ae0c2017-08-21 14:31:17 -070012 "-Wno-unused-argument",
13 "-Wno-unused-function",
Josh Gaocbe70cb2016-10-18 18:17:52 -070014 "-Wno-nullability-completeness",
15 "-Os",
Yabin Cuie90a9442021-08-11 13:21:11 -070016 "-fno-finite-loops",
Alessandra Loro46b33012022-09-01 10:33:35 +000017 "-DANDROID_DEBUGGABLE=0",
Josh Gaocbe70cb2016-10-18 18:17:52 -070018 ],
19
20 local_include_dirs: ["include"],
Alessandra Loro46b33012022-09-01 10:33:35 +000021 product_variables: {
22 debuggable: {
23 cflags: ["-UANDROID_DEBUGGABLE", "-DANDROID_DEBUGGABLE=1"],
24 }
25 },
Josh Gaocbe70cb2016-10-18 18:17:52 -070026}
27
Narayan Kamatha73df602017-05-24 15:07:25 +010028cc_library_headers {
29 name: "libdebuggerd_common_headers",
Elliott Hughesdc699a22018-02-16 17:58:14 -080030 export_include_dirs: ["common/include"],
Jiyong Parka0e75042018-05-24 14:11:00 +090031 recovery_available: true,
Yifan Hong2ec92cf2020-10-27 16:25:45 -070032 vendor_ramdisk_available: true,
Shikha Panwar757f2992022-03-25 19:43:14 +000033 apex_available: [
34 "com.android.virt",
35 "//apex_available:platform",
36 ],
Narayan Kamatha73df602017-05-24 15:07:25 +010037}
38
Narayan Kamath2d377cd2017-05-10 10:58:59 +010039cc_library_shared {
Josh Gaoe1aa0ca2017-03-01 17:23:22 -080040 name: "libtombstoned_client",
41 defaults: ["debuggerd_defaults"],
42 srcs: [
Narayan Kamath2d377cd2017-05-10 10:58:59 +010043 "tombstoned/tombstoned_client.cpp",
44 "util.cpp",
45 ],
46
Narayan Kamatha73df602017-05-24 15:07:25 +010047 header_libs: ["libdebuggerd_common_headers"],
48
Narayan Kamath2d377cd2017-05-10 10:58:59 +010049 static_libs: [
Narayan Kamatha73df602017-05-24 15:07:25 +010050 "libasync_safe",
Narayan Kamath2d377cd2017-05-10 10:58:59 +010051 ],
52
53 shared_libs: [
Narayan Kamath2d377cd2017-05-10 10:58:59 +010054 "libbase",
Narayan Kamatha73df602017-05-24 15:07:25 +010055 "libcutils",
Narayan Kamath2d377cd2017-05-10 10:58:59 +010056 ],
Shikha Panwar757f2992022-03-25 19:43:14 +000057 apex_available: [
58 "com.android.virt",
59 "//apex_available:platform",
60 ],
Narayan Kamath2d377cd2017-05-10 10:58:59 +010061
Narayan Kamatha73df602017-05-24 15:07:25 +010062 export_header_lib_headers: ["libdebuggerd_common_headers"],
Elliott Hughesdc699a22018-02-16 17:58:14 -080063 export_include_dirs: ["tombstoned/include"],
Narayan Kamath2d377cd2017-05-10 10:58:59 +010064}
65
Josh Gao9da1f512018-08-06 15:38:29 -070066// Utility library to talk to tombstoned and get an output fd.
Narayan Kamath2d377cd2017-05-10 10:58:59 +010067cc_library_static {
68 name: "libtombstoned_client_static",
69 defaults: ["debuggerd_defaults"],
Jiyong Park011ee122018-05-29 16:41:30 +090070 recovery_available: true,
Yifan Hong2ec92cf2020-10-27 16:25:45 -070071 vendor_ramdisk_available: true,
Narayan Kamath2d377cd2017-05-10 10:58:59 +010072 srcs: [
73 "tombstoned/tombstoned_client.cpp",
Josh Gaoe1aa0ca2017-03-01 17:23:22 -080074 "util.cpp",
75 ],
76
Narayan Kamatha73df602017-05-24 15:07:25 +010077 header_libs: ["libdebuggerd_common_headers"],
78
Josh Gaoe1aa0ca2017-03-01 17:23:22 -080079 whole_static_libs: [
Christopher Ferrisac225782017-04-25 11:23:10 -070080 "libasync_safe",
Josh Gaoe1aa0ca2017-03-01 17:23:22 -080081 "libcutils",
82 "libbase",
83 ],
Narayan Kamath2d377cd2017-05-10 10:58:59 +010084
Narayan Kamatha73df602017-05-24 15:07:25 +010085 export_header_lib_headers: ["libdebuggerd_common_headers"],
Elliott Hughesdc699a22018-02-16 17:58:14 -080086 export_include_dirs: ["tombstoned/include"],
Josh Gaoe1aa0ca2017-03-01 17:23:22 -080087}
88
89// Core implementation, linked into libdebuggerd_handler and the dynamic linker.
Josh Gao9c02dc52016-06-15 17:29:00 -070090cc_library_static {
Josh Gaoe73c9322017-02-08 16:06:26 -080091 name: "libdebuggerd_handler_core",
Josh Gaocbe70cb2016-10-18 18:17:52 -070092 defaults: ["debuggerd_defaults"],
Jiyong Parka0e75042018-05-24 14:11:00 +090093 recovery_available: true,
Yifan Hong2ec92cf2020-10-27 16:25:45 -070094 vendor_ramdisk_available: true,
Josh Gaocbe70cb2016-10-18 18:17:52 -070095 srcs: ["handler/debuggerd_handler.cpp"],
Josh Gao9c02dc52016-06-15 17:29:00 -070096
Josh Gaofdf832d2017-08-25 18:00:18 -070097 header_libs: [
98 "libbase_headers",
99 "libdebuggerd_common_headers",
Josh Gaoa48b41b2019-12-13 14:11:04 -0800100 "bionic_libc_platform_headers",
Josh Gaofdf832d2017-08-25 18:00:18 -0700101 ],
Narayan Kamatha73df602017-05-24 15:07:25 +0100102
Josh Gaoe73c9322017-02-08 16:06:26 -0800103 whole_static_libs: [
Christopher Ferrisac225782017-04-25 11:23:10 -0700104 "libasync_safe",
Josh Gao2b2ae0c2017-08-21 14:31:17 -0700105 "libcutils",
Josh Gaoe73c9322017-02-08 16:06:26 -0800106 "libdebuggerd",
107 ],
108
Narayan Kamatha73df602017-05-24 15:07:25 +0100109 export_header_lib_headers: ["libdebuggerd_common_headers"],
Josh Gaoe73c9322017-02-08 16:06:26 -0800110 export_include_dirs: ["include"],
111}
112
Josh Gaoe1aa0ca2017-03-01 17:23:22 -0800113// Implementation with a no-op fallback.
Josh Gaoe73c9322017-02-08 16:06:26 -0800114cc_library_static {
115 name: "libdebuggerd_handler",
116 defaults: ["debuggerd_defaults"],
117 srcs: ["handler/debuggerd_fallback_nop.cpp"],
118
Josh Gaoa48b41b2019-12-13 14:11:04 -0800119 header_libs: ["bionic_libc_platform_headers"],
120 export_header_lib_headers: ["bionic_libc_platform_headers"],
121
Josh Gaoe73c9322017-02-08 16:06:26 -0800122 whole_static_libs: [
123 "libdebuggerd_handler_core",
124 ],
125
126 export_include_dirs: ["include"],
127}
128
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100129// Fallback implementation, for use in the Bionic linker only.
Josh Gaoe73c9322017-02-08 16:06:26 -0800130cc_library_static {
131 name: "libdebuggerd_handler_fallback",
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100132 visibility: ["//bionic/linker"],
133 apex_available: [
134 "com.android.runtime",
135 "//apex_available:platform",
136 ],
Josh Gaoe73c9322017-02-08 16:06:26 -0800137 defaults: ["debuggerd_defaults"],
Jiyong Park011ee122018-05-29 16:41:30 +0900138 recovery_available: true,
Yifan Hong2ec92cf2020-10-27 16:25:45 -0700139 vendor_ramdisk_available: true,
Josh Gaoe1aa0ca2017-03-01 17:23:22 -0800140 srcs: [
141 "handler/debuggerd_fallback.cpp",
142 ],
Josh Gaoe73c9322017-02-08 16:06:26 -0800143
Josh Gaoe1aa0ca2017-03-01 17:23:22 -0800144 whole_static_libs: [
145 "libdebuggerd_handler_core",
Narayan Kamath2d377cd2017-05-10 10:58:59 +0100146 "libtombstoned_client_static",
Christopher Ferrisac225782017-04-25 11:23:10 -0700147 "libasync_safe",
Josh Gaoe1aa0ca2017-03-01 17:23:22 -0800148 "libbase",
Josh Gaoe73c9322017-02-08 16:06:26 -0800149 "libdebuggerd",
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100150 "libunwindstack_no_dex",
Josh Gaoe73c9322017-02-08 16:06:26 -0800151 "liblzma",
152 "libcutils",
153 ],
Josh Gaoa48b41b2019-12-13 14:11:04 -0800154
155 header_libs: ["bionic_libc_platform_headers"],
156 export_header_lib_headers: ["bionic_libc_platform_headers"],
157
Josh Gaocbe70cb2016-10-18 18:17:52 -0700158 export_include_dirs: ["include"],
159}
160
161cc_library {
162 name: "libdebuggerd_client",
163 defaults: ["debuggerd_defaults"],
164 srcs: [
165 "client/debuggerd_client.cpp",
166 "util.cpp",
167 ],
168
169 shared_libs: [
170 "libbase",
171 "libcutils",
Josh Gao4175cee2019-01-04 13:57:09 -0800172 "libprocinfo",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700173 ],
Josh Gaoe1aa0ca2017-03-01 17:23:22 -0800174
Josh Gaoa48b41b2019-12-13 14:11:04 -0800175 header_libs: [
176 "libdebuggerd_common_headers",
177 "bionic_libc_platform_headers",
178 ],
179 export_header_lib_headers: [
180 "libdebuggerd_common_headers",
181 "bionic_libc_platform_headers",
182 ],
183
Josh Gaocbe70cb2016-10-18 18:17:52 -0700184 export_include_dirs: ["include"],
185}
186
Josh Gaoe73c9322017-02-08 16:06:26 -0800187cc_library_static {
Josh Gaocbe70cb2016-10-18 18:17:52 -0700188 name: "libdebuggerd",
189 defaults: ["debuggerd_defaults"],
Jiyong Parka0e75042018-05-24 14:11:00 +0900190 recovery_available: true,
Yifan Hong2ec92cf2020-10-27 16:25:45 -0700191 vendor_ramdisk_available: true,
Josh Gaocbe70cb2016-10-18 18:17:52 -0700192
193 srcs: [
194 "libdebuggerd/backtrace.cpp",
Mitch Phillipse0b4bb12020-02-14 14:54:31 -0800195 "libdebuggerd/gwp_asan.cpp",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700196 "libdebuggerd/open_files_list.cpp",
197 "libdebuggerd/tombstone.cpp",
Josh Gao76e1e302021-01-26 15:53:11 -0800198 "libdebuggerd/tombstone_proto.cpp",
199 "libdebuggerd/tombstone_proto_to_text.cpp",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700200 "libdebuggerd/utility.cpp",
201 ],
202
Josh Gaocbe70cb2016-10-18 18:17:52 -0700203 local_include_dirs: ["libdebuggerd/include"],
204 export_include_dirs: ["libdebuggerd/include"],
Josh Gao9c02dc52016-06-15 17:29:00 -0700205
Peter Collingbournef8622522020-04-07 14:07:32 -0700206 include_dirs: [
207 // Needed for private/bionic_fdsan.h
208 "bionic/libc",
Peter Collingbournef8622522020-04-07 14:07:32 -0700209 ],
Mitch Phillipse0b4bb12020-02-14 14:54:31 -0800210 header_libs: [
211 "bionic_libc_platform_headers",
212 "gwp_asan_headers",
213 ],
Josh Gaoce841d92018-08-06 18:26:42 -0700214
Josh Gaoe73c9322017-02-08 16:06:26 -0800215 static_libs: [
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100216 "libdexfile_support", // libunwindstack dependency
Christopher Ferris9a8c8552017-08-11 15:29:19 -0700217 "libunwindstack",
Josh Gaoe73c9322017-02-08 16:06:26 -0800218 "liblzma",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700219 "libbase",
220 "libcutils",
221 "liblog",
222 ],
Martin Stjernholm3784b9d2021-08-26 21:18:43 +0100223 runtime_libs: [
224 "libdexfile", // libdexfile_support dependency
225 ],
Josh Gaoa48b41b2019-12-13 14:11:04 -0800226
Peter Collingbournef8622522020-04-07 14:07:32 -0700227 whole_static_libs: [
Josh Gao618cea32021-01-26 17:45:43 -0800228 "libasync_safe",
Peter Collingbournef8622522020-04-07 14:07:32 -0700229 "gwp_asan_crash_handler",
Josh Gao76e1e302021-01-26 15:53:11 -0800230 "libtombstone_proto",
Josh Gaodbb83de2021-03-01 23:13:13 -0800231 "libprocinfo",
Josh Gao76e1e302021-01-26 15:53:11 -0800232 "libprotobuf-cpp-lite",
Peter Collingbournef8622522020-04-07 14:07:32 -0700233 ],
Mitch Phillipse0b4bb12020-02-14 14:54:31 -0800234
Martin Stjernholmbb4f2b42018-12-19 14:28:33 +0000235 target: {
236 recovery: {
237 exclude_static_libs: [
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100238 "libdexfile_support",
Martin Stjernholmbb4f2b42018-12-19 14:28:33 +0000239 ],
Martin Stjernholm3784b9d2021-08-26 21:18:43 +0100240 exclude_runtime_libs: [
241 "libdexfile",
242 ],
Martin Stjernholmbb4f2b42018-12-19 14:28:33 +0000243 },
Yifan Hong2ec92cf2020-10-27 16:25:45 -0700244 vendor_ramdisk: {
245 exclude_static_libs: [
246 "libdexfile_support",
247 ],
Martin Stjernholm3784b9d2021-08-26 21:18:43 +0100248 exclude_runtime_libs: [
249 "libdexfile",
250 ],
Yifan Hong2ec92cf2020-10-27 16:25:45 -0700251 },
Martin Stjernholmbb4f2b42018-12-19 14:28:33 +0000252 },
Christopher Ferris4ae266c2019-04-03 09:27:12 -0700253
254 product_variables: {
255 debuggable: {
256 cflags: ["-DROOT_POSSIBLE"],
257 },
Christopher Ferris7aad2562021-09-24 00:06:38 -0700258
259 malloc_not_svelte: {
260 cflags: ["-DUSE_SCUDO"],
261 whole_static_libs: ["libscudo"],
262 srcs: ["libdebuggerd/scudo.cpp"],
263 header_libs: ["scudo_headers"],
264 },
Christopher Ferris4ae266c2019-04-03 09:27:12 -0700265 },
Josh Gaocbe70cb2016-10-18 18:17:52 -0700266}
267
Josh Gao76e1e302021-01-26 15:53:11 -0800268cc_binary {
269 name: "pbtombstone",
270 defaults: ["debuggerd_defaults"],
271 srcs: ["pbtombstone.cpp"],
272 static_libs: [
273 "libbase",
274 "libdebuggerd",
275 "liblog",
276 "libprotobuf-cpp-lite",
277 "libtombstone_proto",
278 "libunwindstack",
279 ],
280}
281
Christopher Ferrisfe751c52021-04-16 09:40:40 -0700282cc_test_library {
283 name: "libcrash_test",
284 defaults: ["debuggerd_defaults"],
285 srcs: ["crash_test.cpp"],
286}
287
Josh Gaocbe70cb2016-10-18 18:17:52 -0700288cc_test {
289 name: "debuggerd_test",
290 defaults: ["debuggerd_defaults"],
Josh Gao6cad1392019-08-27 16:02:38 -0700291 require_root: true,
Josh Gaocbe70cb2016-10-18 18:17:52 -0700292
293 cflags: ["-Wno-missing-field-initializers"],
294 srcs: [
295 "libdebuggerd/test/dump_memory_test.cpp",
296 "libdebuggerd/test/elf_fake.cpp",
297 "libdebuggerd/test/log_fake.cpp",
298 "libdebuggerd/test/open_files_list_test.cpp",
Peter Collingbourne47d784e2021-11-05 18:40:52 -0700299 "libdebuggerd/test/utility_test.cpp",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700300 ],
301
302 target: {
303 android: {
304 srcs: [
Josh Gaoae9d7672017-03-24 16:26:03 -0700305 "client/debuggerd_client_test.cpp",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700306 "debuggerd_test.cpp",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700307 ],
Elliott Hughesdc699a22018-02-16 17:58:14 -0800308 static_libs: [
309 "libasync_safe",
310 "libtombstoned_client_static",
311 ],
Josh Gaocbe70cb2016-10-18 18:17:52 -0700312 },
313 },
314
315 shared_libs: [
Josh Gaocbe70cb2016-10-18 18:17:52 -0700316 "libbase",
317 "libcutils",
Josh Gaoae9d7672017-03-24 16:26:03 -0700318 "libdebuggerd_client",
Narayan Kamatha73df602017-05-24 15:07:25 +0100319 "liblog",
Elliott Hughesdc699a22018-02-16 17:58:14 -0800320 "libnativehelper",
Martin Stjernholm852b64e2019-02-20 17:01:24 +0000321 "libunwindstack",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700322 ],
323
324 static_libs: [
Josh Gao352a8452017-03-30 16:46:21 -0700325 "libdebuggerd",
Mitch Phillipse0b4bb12020-02-14 14:54:31 -0800326 "libgmock",
Peter Collingbourned00a5772020-07-20 23:11:16 -0700327 "libminijail",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700328 ],
329
Josh Gaoa48b41b2019-12-13 14:11:04 -0800330 header_libs: [
331 "bionic_libc_platform_headers",
Mitch Phillipse0b4bb12020-02-14 14:54:31 -0800332 "gwp_asan_headers",
Josh Gaoa48b41b2019-12-13 14:11:04 -0800333 ],
334
Josh Gaocbe70cb2016-10-18 18:17:52 -0700335 local_include_dirs: [
336 "libdebuggerd",
337 ],
338
339 compile_multilib: "both",
340 multilib: {
341 lib32: {
342 stem: "debuggerd_test32",
343 },
344 lib64: {
345 stem: "debuggerd_test64",
346 },
347 },
Elliott Hughes40fdf3f2018-04-27 16:12:06 -0700348
Christopher Ferrisfe751c52021-04-16 09:40:40 -0700349 data: [
350 ":libcrash_test",
351 ],
352
Elliott Hughes40fdf3f2018-04-27 16:12:06 -0700353 test_suites: ["device-tests"],
Josh Gaocbe70cb2016-10-18 18:17:52 -0700354}
355
Josh Gaoa42314e2017-12-19 15:08:19 -0800356cc_benchmark {
357 name: "debuggerd_benchmark",
358 defaults: ["debuggerd_defaults"],
359 srcs: ["debuggerd_benchmark.cpp"],
360 shared_libs: [
361 "libbase",
362 "libdebuggerd_client",
363 ],
364}
365
Josh Gaocbe70cb2016-10-18 18:17:52 -0700366cc_binary {
367 name: "crash_dump",
368 srcs: [
369 "crash_dump.cpp",
370 "util.cpp",
371 ],
372 defaults: ["debuggerd_defaults"],
373
374 compile_multilib: "both",
375 multilib: {
376 lib32: {
377 suffix: "32",
378 },
379 lib64: {
380 suffix: "64",
381 },
382 },
383
Josh Gaoa48b41b2019-12-13 14:11:04 -0800384 header_libs: [
385 "bionic_libc_platform_headers",
386 ],
387
Josh Gaoe73c9322017-02-08 16:06:26 -0800388 static_libs: [
Narayan Kamath2d377cd2017-05-10 10:58:59 +0100389 "libtombstoned_client_static",
Josh Gaoe73c9322017-02-08 16:06:26 -0800390 "libdebuggerd",
391 "libcutils",
Josh Gao76e1e302021-01-26 15:53:11 -0800392
393 "libtombstone_proto",
394 "libprotobuf-cpp-lite",
Josh Gaoe73c9322017-02-08 16:06:26 -0800395 ],
396
Josh Gaocbe70cb2016-10-18 18:17:52 -0700397 shared_libs: [
Josh Gaocbe70cb2016-10-18 18:17:52 -0700398 "libbase",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700399 "liblog",
400 "libprocinfo",
Josh Gao2b2ae0c2017-08-21 14:31:17 -0700401 "libunwindstack",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700402 ],
Peter Collingbourneb72e7482020-03-16 18:14:13 -0700403
404 apex_available: [
405 "com.android.runtime",
406 ],
Peter Collingbournea2739da2022-02-02 17:00:42 -0800407
408 // Required for tests.
409 required: ["crash_dump.policy"],
Josh Gaocbe70cb2016-10-18 18:17:52 -0700410}
411
412cc_binary {
413 name: "debuggerd",
414 srcs: [
415 "debuggerd.cpp",
416 ],
417 defaults: ["debuggerd_defaults"],
418
419 shared_libs: [
420 "libbase",
421 "libdebuggerd_client",
422 "liblog",
Josh Gao0915f232017-06-27 14:08:05 -0700423 "libprocinfo",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700424 ],
425
426 local_include_dirs: ["include"],
427}
428
429cc_binary {
430 name: "tombstoned",
431 srcs: [
432 "util.cpp",
433 "tombstoned/intercept_manager.cpp",
434 "tombstoned/tombstoned.cpp",
435 ],
436 defaults: ["debuggerd_defaults"],
437
Josh Gaoa48b41b2019-12-13 14:11:04 -0800438 header_libs: [
439 "bionic_libc_platform_headers",
440 "libdebuggerd_common_headers"
441 ],
Narayan Kamatha73df602017-05-24 15:07:25 +0100442
Josh Gaocbe70cb2016-10-18 18:17:52 -0700443 static_libs: [
444 "libbase",
445 "libcutils",
446 "libevent",
447 "liblog",
448 ],
449
Elliott Hughesdc699a22018-02-16 17:58:14 -0800450 init_rc: ["tombstoned/tombstoned.rc"],
Josh Gao9c02dc52016-06-15 17:29:00 -0700451}
Ray Essickbd3ba782020-01-21 15:21:08 -0800452
453prebuilt_etc {
454 name: "crash_dump.policy",
455 sub_dir: "seccomp_policy",
456 filename_from_src: true,
457 arch: {
458 arm: {
459 src: "seccomp_policy/crash_dump.arm.policy",
460 },
461 arm64: {
462 src: "seccomp_policy/crash_dump.arm64.policy",
463 },
464 x86: {
465 src: "seccomp_policy/crash_dump.x86.policy",
466 },
467 x86_64: {
468 src: "seccomp_policy/crash_dump.x86_64.policy",
469 },
470 },
471 required: [
472 "crash_dump.policy_other",
473 ],
474}
475
476
477// NB -- this installs "the other" architecture. (puts 32 bit config in on 64 bit device)
478// or at least that is the intention so that we get both of them populated
479prebuilt_etc {
480 name: "crash_dump.policy_other",
481 sub_dir: "seccomp_policy",
482 filename_from_src: true,
483 arch: {
484 arm: {
485 src: "seccomp_policy/crash_dump.arm64.policy",
486 },
487 arm64: {
488 src: "seccomp_policy/crash_dump.arm.policy",
489 },
490 x86: {
491 src: "seccomp_policy/crash_dump.x86_64.policy",
492 },
493 x86_64: {
494 src: "seccomp_policy/crash_dump.x86.policy",
495 },
496 },
497}