1/* 2 * Copyright (C) 2021 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 */ 16 17package { 18 default_team: "trendy_team_android_hardware_backed_security", 19 // See: http://go/android-license-faq 20 // A large-scale-change added 'default_applicable_licenses' to import 21 // all of the 'license_kinds' from "system_security_license" 22 // to get the below license kinds: 23 // SPDX-license-identifier-Apache-2.0 24 default_applicable_licenses: ["system_security_license"], 25} 26 27cc_fuzz { 28 name: "keystoreGetWifiHidl_fuzzer", 29 vendor: true, 30 srcs: [ 31 "keystoreGetWifiHidl_fuzzer.cpp", 32 ], 33 static_libs: [ 34 "libkeystore-wifi-hidl", 35 ], 36 shared_libs: [ 37 "[email protected]", 38 "libhidlbase", 39 "liblog", 40 "libutils", 41 ], 42 fuzz_config: { 43 cc: [ 44 "[email protected]", 45 ], 46 componentid: 1084732, 47 hotlists: [ 48 "4593311", 49 ], 50 description: "The fuzzer targets the APIs of libkeystore-wifi-hidl", 51 vector: "local_no_privileges_required", 52 service_privilege: "privileged", 53 users: "multi_user", 54 fuzzed_code_usage: "shipped", 55 }, 56} 57 58cc_defaults { 59 name: "keystoreAttestation_defaults", 60 static_libs: [ 61 "libkeystore-attestation-application-id", 62 "liblog", 63 "libbase", 64 "libhidlbase", 65 ], 66 shared_libs: [ 67 "android.security.aaid_aidl-cpp", 68 "libbinder", 69 "libcrypto", 70 "libutils", 71 ], 72 fuzz_config: { 73 cc: [ 74 "[email protected]", 75 ], 76 componentid: 1084732, 77 hotlists: [ 78 "4593311", 79 ], 80 description: "The fuzzer targets the APIs of libkeystore-attestation-application-id", 81 vector: "local_no_privileges_required", 82 service_privilege: "privileged", 83 users: "multi_user", 84 fuzzed_code_usage: "shipped", 85 }, 86} 87 88cc_fuzz { 89 name: "keystoreSignature_fuzzer", 90 srcs: [ 91 "keystoreSignature_fuzzer.cpp", 92 ], 93 defaults: [ 94 "keystoreAttestation_defaults", 95 ], 96} 97 98cc_fuzz { 99 name: "keystorePackageInfo_fuzzer", 100 srcs: [ 101 "keystorePackageInfo_fuzzer.cpp", 102 ], 103 defaults: [ 104 "keystoreAttestation_defaults", 105 ], 106} 107 108cc_fuzz { 109 name: "keystoreApplicationId_fuzzer", 110 srcs: [ 111 "keystoreApplicationId_fuzzer.cpp", 112 ], 113 defaults: [ 114 "keystoreAttestation_defaults", 115 ], 116} 117 118cc_fuzz { 119 name: "keystoreAttestationId_fuzzer", 120 srcs: [ 121 "keystoreAttestationId_fuzzer.cpp", 122 ], 123 defaults: [ 124 "keystoreAttestation_defaults", 125 ], 126} 127