Devendra Singhi | d29be4a | 2022-06-08 11:06:56 +0530 | [diff] [blame] | 1 | /* |
| 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 Badour | 03d5052 | 2022-10-06 11:54:34 -0700 | [diff] [blame] | 16 | package { |
| 17 | default_applicable_licenses: ["system_core_init_license"], |
| 18 | } |
| 19 | |
Devendra Singhi | d29be4a | 2022-06-08 11:06:56 +0530 | [diff] [blame] | 20 | cc_defaults { |
Nikita Ioffe | a66adf4 | 2023-06-26 14:55:31 +0100 | [diff] [blame] | 21 | name: "libinit_fuzzer_defaults", |
Devendra Singhi | d29be4a | 2022-06-08 11:06:56 +0530 | [diff] [blame] | 22 | 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 | |
| 49 | cc_fuzz { |
| 50 | name: "init_parser_fuzzer", |
| 51 | srcs: [ |
| 52 | "init_parser_fuzzer.cpp", |
| 53 | ], |
| 54 | shared_libs: ["libhidlmetadata",], |
| 55 | defaults: [ |
Nikita Ioffe | a66adf4 | 2023-06-26 14:55:31 +0100 | [diff] [blame] | 56 | "libinit_fuzzer_defaults", |
Devendra Singhi | d29be4a | 2022-06-08 11:06:56 +0530 | [diff] [blame] | 57 | ], |
| 58 | } |
Akshata Kadam | 2ae7671 | 2022-04-26 09:52:28 +0530 | [diff] [blame] | 59 | |
| 60 | cc_fuzz { |
| 61 | name: "init_property_fuzzer", |
| 62 | srcs: [ |
| 63 | "init_property_fuzzer.cpp", |
| 64 | ], |
Nikita Ioffe | a66adf4 | 2023-06-26 14:55:31 +0100 | [diff] [blame] | 65 | defaults: ["libinit_fuzzer_defaults"], |
Akshata Kadam | 2ae7671 | 2022-04-26 09:52:28 +0530 | [diff] [blame] | 66 | } |
kunal rai | 803b5f4 | 2022-03-16 11:20:41 +0530 | [diff] [blame] | 67 | |
| 68 | cc_fuzz { |
| 69 | name: "init_ueventHandler_fuzzer", |
| 70 | srcs: [ |
| 71 | "init_ueventHandler_fuzzer.cpp", |
| 72 | ], |
| 73 | defaults: [ |
Nikita Ioffe | a66adf4 | 2023-06-26 14:55:31 +0100 | [diff] [blame] | 74 | "libinit_fuzzer_defaults", |
kunal rai | 803b5f4 | 2022-03-16 11:20:41 +0530 | [diff] [blame] | 75 | ], |
| 76 | } |