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: [ |
Devendra Singhi | d29be4a | 2022-06-08 11:06:56 +0530 | [diff] [blame] | 23 | "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 Singhi | d29be4a | 2022-06-08 11:06:56 +0530 | [diff] [blame] | 33 | "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 | |
| 46 | cc_fuzz { |
| 47 | name: "init_parser_fuzzer", |
| 48 | srcs: [ |
| 49 | "init_parser_fuzzer.cpp", |
| 50 | ], |
Devendra Singhi | d29be4a | 2022-06-08 11:06:56 +0530 | [diff] [blame] | 51 | defaults: [ |
Nikita Ioffe | a66adf4 | 2023-06-26 14:55:31 +0100 | [diff] [blame] | 52 | "libinit_fuzzer_defaults", |
Devendra Singhi | d29be4a | 2022-06-08 11:06:56 +0530 | [diff] [blame] | 53 | ], |
| 54 | } |
Akshata Kadam | 2ae7671 | 2022-04-26 09:52:28 +0530 | [diff] [blame] | 55 | |
| 56 | cc_fuzz { |
| 57 | name: "init_property_fuzzer", |
| 58 | srcs: [ |
| 59 | "init_property_fuzzer.cpp", |
| 60 | ], |
Nikita Ioffe | a66adf4 | 2023-06-26 14:55:31 +0100 | [diff] [blame] | 61 | defaults: ["libinit_fuzzer_defaults"], |
Akshata Kadam | 2ae7671 | 2022-04-26 09:52:28 +0530 | [diff] [blame] | 62 | } |
kunal rai | 803b5f4 | 2022-03-16 11:20:41 +0530 | [diff] [blame] | 63 | |
| 64 | cc_fuzz { |
| 65 | name: "init_ueventHandler_fuzzer", |
| 66 | srcs: [ |
| 67 | "init_ueventHandler_fuzzer.cpp", |
| 68 | ], |
| 69 | defaults: [ |
Nikita Ioffe | a66adf4 | 2023-06-26 14:55:31 +0100 | [diff] [blame] | 70 | "libinit_fuzzer_defaults", |
kunal rai | 803b5f4 | 2022-03-16 11:20:41 +0530 | [diff] [blame] | 71 | ], |
| 72 | } |