xref: /aosp_15_r20/system/keymaster/fuzzer/Android.bp (revision 789431f29546679ab5188a97751fb38e3018d44d)
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 */
17
18package {
19    default_team: "trendy_team_android_hardware_backed_security",
20    // 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
28cc_defaults {
29    name: "libkeymaster4_fuzzer_defaults",
30    static_libs: [
31        "libbase",
32        "liblog",
33        "libkeymaster4",
34        "libutils",
35    ],
36    shared_libs: [
37        "[email protected]",
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            "[email protected]",
53        ],
54        componentid: 533764,
55        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",
63    },
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}
75