1// 2// Copyright (C) 2020 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 // http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // the below license kinds from "external_selinux_libselinux_license": 21 // SPDX-license-identifier-Apache-2.0 22 default_applicable_licenses: ["external_selinux_libselinux_license"], 23} 24 25cc_defaults { 26 name: "libselinux_fuzzer_defaults", 27 cflags: [ 28 "-Wall", 29 ], 30 static_libs: [ 31 "liblog", 32 "libselinux", 33 ], 34} 35 36cc_fuzz { 37 name: "libselinux_android_setcontext_fuzzer", 38 defaults: ["libselinux_fuzzer_defaults"], 39 srcs: ["AndroidSetcontextFuzzer.cpp"], 40} 41 42cc_fuzz { 43 name: "libselinux_context_fuzzer", 44 defaults: ["libselinux_fuzzer_defaults"], 45 srcs: ["ContextFuzzer.cpp"], 46 host_supported: true, 47} 48 49cc_fuzz { 50 name: "libselinux_selabel_lookup_fuzzer", 51 defaults: ["libselinux_fuzzer_defaults"], 52 srcs: ["selabel_lookup_fuzzer.cpp"], 53 dictionary: "selabel_lookup_fuzzer.dict", 54} 55 56cc_fuzz { 57 name: "libselinux_selinux_check_access_fuzzer", 58 defaults: ["libselinux_fuzzer_defaults"], 59 srcs: ["selinux_check_access_fuzzer.cpp"], 60 dictionary: "selinux_check_access_fuzzer.dict", 61} 62 63cc_fuzz { 64 name: "libselinux_selinux_android_restorecon_fuzzer", 65 defaults: ["libselinux_fuzzer_defaults"], 66 srcs: ["selinux_android_restorecon_fuzzer.cpp"], 67 dictionary: "selinux_android_restorecon_fuzzer.dict", 68} 69 70cc_fuzz { 71 name: "libselinux_selinux_android_setcon_fuzzer", 72 defaults: ["libselinux_fuzzer_defaults"], 73 srcs: ["selinux_android_setcon_fuzzer.cpp"], 74 dictionary: "selinux_android_setcon_fuzzer.dict", 75} 76 77cc_fuzz { 78 name: "libselinux_setfilecon_fuzzer", 79 defaults: ["libselinux_fuzzer_defaults"], 80 srcs: ["setfilecon_fuzzer.cpp"], 81 dictionary: "setfilecon_fuzzer.dict", 82} 83 84cc_fuzz { 85 name: "libselinux_lsetfilecon_fuzzer", 86 defaults: ["libselinux_fuzzer_defaults"], 87 srcs: ["lsetfilecon_fuzzer.cpp"], 88 dictionary: "lsetfilecon_fuzzer.dict", 89} 90 91cc_fuzz { 92 name: "libselinux_string_to_security_class_fuzzer", 93 defaults: ["libselinux_fuzzer_defaults"], 94 srcs: ["string_to_security_class_fuzzer.cpp"], 95 dictionary: "string_to_security_class_fuzzer.dict", 96} 97