blob: 3f265cdc579f32815a64999735651a291ff54484 [file] [log] [blame]
Ayushi Khopkar2c3e55f2021-07-28 09:14:42 +05301/*
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 */
17
Bob Badour5f5a6ea2022-09-01 09:15:17 -070018package {
Aditya Choudharyefa69932024-02-02 14:01:18 +000019 default_team: "trendy_team_android_hardware_backed_security",
Bob Badour5f5a6ea2022-09-01 09:15:17 -070020 // See: http://go/android-license-faq
21 // A large-scale-change added 'default_applicable_licenses' to import
22 // all of the 'license_kinds' from "system_keymaster_license"
23 // to get the below license kinds:
24 // SPDX-license-identifier-Apache-2.0
25 default_applicable_licenses: ["system_keymaster_license"],
26}
27
Ayushi Khopkar2c3e55f2021-07-28 09:14:42 +053028cc_defaults {
29 name: "libkeymaster4_fuzzer_defaults",
30 static_libs: [
31 "libbase",
32 "liblog",
33 "libkeymaster4",
34 "libutils",
35 ],
36 shared_libs: [
37 "android.hardware.keymaster@4.0",
38 "libcrypto",
39 "libhidlbase",
40 "libkeymaster_messages",
41 "libcutils",
42 "libkeymaster_portable",
43 "libpuresoftkeymasterdevice",
44 "libkeymaster4support",
45 "libvndksupport",
46 ],
47 include_dirs: [
48 "system/keymaster/legacy_support",
49 ],
50 fuzz_config: {
51 cc: [
52 "android-media-fuzzing-reports@google.com",
53 ],
54 componentid: 533764,
Ayushi Khopkar2a76e732023-03-17 17:20:23 +053055 hotlists: [
56 "4593311",
57 ],
58 description: "The fuzzer targets the APIs of libkeymaster4",
59 vector: "local_no_privileges_required",
60 service_privilege: "privileged",
61 users: "multi_user",
62 fuzzed_code_usage: "shipped",
Ayushi Khopkar2c3e55f2021-07-28 09:14:42 +053063 },
64}
65
66cc_fuzz {
67 name: "k4_AndroidKeymaster4Device_fuzzer",
68 defaults: [
69 "libkeymaster4_fuzzer_defaults",
70 ],
71 srcs: [
72 "k4_AndroidKeymaster4Device_fuzzer.cpp",
73 ],
74}