blob: 856ca8cf57377d9ce646cd261a0d027e846a77bb [file] [log] [blame]
Devendra Singhid29be4a2022-06-08 11:06:56 +05301/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Bob Badour03d50522022-10-06 11:54:34 -070016package {
17 default_applicable_licenses: ["system_core_init_license"],
18}
19
Devendra Singhid29be4a2022-06-08 11:06:56 +053020cc_defaults {
Nikita Ioffea66adf42023-06-26 14:55:31 +010021 name: "libinit_fuzzer_defaults",
Devendra Singhid29be4a2022-06-08 11:06:56 +053022 static_libs: [
23 "libc++fs",
24 "liblmkd_utils",
25 "libmodprobe",
26 "libprotobuf-cpp-lite",
27 "libpropertyinfoparser",
28 "libsnapshot_init",
29 "libinit",
30 ],
31 shared_libs: [
32 "libbase",
33 "libfs_mgr",
34 "libhidl-gen-utils",
35 "libkeyutils",
36 "liblog",
37 "libprocessgroup",
38 "libselinux",
39 ],
40 header_libs: ["libinit_headers"],
41 fuzz_config: {
42 cc: [
43 "android-media-fuzzing-reports@google.com",
44 ],
45 componentid: 155276,
46 },
47}
48
49cc_fuzz {
50 name: "init_parser_fuzzer",
51 srcs: [
52 "init_parser_fuzzer.cpp",
53 ],
54 shared_libs: ["libhidlmetadata",],
55 defaults: [
Nikita Ioffea66adf42023-06-26 14:55:31 +010056 "libinit_fuzzer_defaults",
Devendra Singhid29be4a2022-06-08 11:06:56 +053057 ],
58}
Akshata Kadam2ae76712022-04-26 09:52:28 +053059
60cc_fuzz {
61 name: "init_property_fuzzer",
62 srcs: [
63 "init_property_fuzzer.cpp",
64 ],
Nikita Ioffea66adf42023-06-26 14:55:31 +010065 defaults: ["libinit_fuzzer_defaults"],
Akshata Kadam2ae76712022-04-26 09:52:28 +053066}
kunal rai803b5f42022-03-16 11:20:41 +053067
68cc_fuzz {
69 name: "init_ueventHandler_fuzzer",
70 srcs: [
71 "init_ueventHandler_fuzzer.cpp",
72 ],
73 defaults: [
Nikita Ioffea66adf42023-06-26 14:55:31 +010074 "libinit_fuzzer_defaults",
kunal rai803b5f42022-03-16 11:20:41 +053075 ],
76}