• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2021 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//       http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19// Fuzz Trusty IPC messages sent to apploader.
20cc_fuzz {
21    name: "trusty_apploader_tipc_fuzzer",
22    defaults: ["trusty_fuzzer_defaults"],
23    srcs: [":trusty_tipc_fuzzer"],
24    cflags: [
25        "-DTRUSTY_APP_PORT=\"com.android.trusty.apploader\"",
26        "-DTRUSTY_APP_UUID=\"081ba88f-f1ee-452e-b5e8-a7e9ef173a97\"",
27        "-DTRUSTY_APP_FILENAME=\"apploader.syms.elf\"",
28    ],
29    fuzz_config: {
30       cc: ["trong@google.com"],
31    },
32}
33
34// Fuzz app package sent to apploader.
35cc_fuzz {
36    name: "trusty_apploader_app_fuzzer",
37    defaults: ["trusty_fuzzer_defaults"],
38    srcs: ["app_fuzzer.cpp"],
39    include_dirs: ["system/core/trusty/apploader"],
40    shared_libs: [
41        "libdmabufheap",
42    ],
43    fuzz_config: {
44       cc: ["trong@google.com"],
45    },
46}
47