blob: 5823932d24426530e032d21f709a4069e5fdc52c [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",
33 "libhidl-gen-utils",
Devendra Singhid29be4a2022-06-08 11:06:56 +053034 "liblog",
35 "libprocessgroup",
36 "libselinux",
37 ],
38 header_libs: ["libinit_headers"],
39 fuzz_config: {
40 cc: [
41 "android-media-fuzzing-reports@google.com",
42 ],
43 componentid: 155276,
44 },
45}
46
47cc_fuzz {
48 name: "init_parser_fuzzer",
49 srcs: [
50 "init_parser_fuzzer.cpp",
51 ],
52 shared_libs: ["libhidlmetadata",],
53 defaults: [
Nikita Ioffea66adf42023-06-26 14:55:31 +010054 "libinit_fuzzer_defaults",
Devendra Singhid29be4a2022-06-08 11:06:56 +053055 ],
56}
Akshata Kadam2ae76712022-04-26 09:52:28 +053057
58cc_fuzz {
59 name: "init_property_fuzzer",
60 srcs: [
61 "init_property_fuzzer.cpp",
62 ],
Nikita Ioffea66adf42023-06-26 14:55:31 +010063 defaults: ["libinit_fuzzer_defaults"],
Akshata Kadam2ae76712022-04-26 09:52:28 +053064}
kunal rai803b5f42022-03-16 11:20:41 +053065
66cc_fuzz {
67 name: "init_ueventHandler_fuzzer",
68 srcs: [
69 "init_ueventHandler_fuzzer.cpp",
70 ],
71 defaults: [
Nikita Ioffea66adf42023-06-26 14:55:31 +010072 "libinit_fuzzer_defaults",
kunal rai803b5f42022-03-16 11:20:41 +053073 ],
74}