blob: 8cfd597d9738e8af0ec73635df045de046ab9de9 [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: [
Devendra Singhid29be4a2022-06-08 11:06:56 +053023 "liblmkd_utils",
24 "libmodprobe",
25 "libprotobuf-cpp-lite",
26 "libpropertyinfoparser",
27 "libsnapshot_init",
28 "libinit",
29 ],
30 shared_libs: [
31 "libbase",
32 "libfs_mgr",
Devendra Singhid29be4a2022-06-08 11:06:56 +053033 "liblog",
34 "libprocessgroup",
35 "libselinux",
36 ],
37 header_libs: ["libinit_headers"],
38 fuzz_config: {
39 cc: [
40 "android-media-fuzzing-reports@google.com",
41 ],
42 componentid: 155276,
43 },
44}
45
46cc_fuzz {
47 name: "init_parser_fuzzer",
48 srcs: [
49 "init_parser_fuzzer.cpp",
50 ],
Devendra Singhid29be4a2022-06-08 11:06:56 +053051 defaults: [
Nikita Ioffea66adf42023-06-26 14:55:31 +010052 "libinit_fuzzer_defaults",
Devendra Singhid29be4a2022-06-08 11:06:56 +053053 ],
54}
Akshata Kadam2ae76712022-04-26 09:52:28 +053055
56cc_fuzz {
57 name: "init_property_fuzzer",
58 srcs: [
59 "init_property_fuzzer.cpp",
60 ],
Nikita Ioffea66adf42023-06-26 14:55:31 +010061 defaults: ["libinit_fuzzer_defaults"],
Akshata Kadam2ae76712022-04-26 09:52:28 +053062}
kunal rai803b5f42022-03-16 11:20:41 +053063
64cc_fuzz {
65 name: "init_ueventHandler_fuzzer",
66 srcs: [
67 "init_ueventHandler_fuzzer.cpp",
68 ],
69 defaults: [
Nikita Ioffea66adf42023-06-26 14:55:31 +010070 "libinit_fuzzer_defaults",
kunal rai803b5f42022-03-16 11:20:41 +053071 ],
72}