Sandboxing it generates this diff: 38,39c38,39 < #ifndef YY_YY_OUT_SOONG_TEMP_SBOX_794A09CEE4E110D9FF38139A8943928FFD7288A5_OUT_AWKGRAM_TAB_H_INCLUDED < # define YY_YY_OUT_SOONG_TEMP_SBOX_794A09CEE4E110D9FF38139A8943928FFD7288A5_OUT_AWKGRAM_TAB_H_INCLUDED --- > #ifndef YY_YY_OUT_AWKGRAM_TAB_H_INCLUDED > # define YY_YY_OUT_AWKGRAM_TAB_H_INCLUDED 280c280 < #endif /* !YY_YY_OUT_SOONG_TEMP_SBOX_794A09CEE4E110D9FF38139A8943928FFD7288A5_OUT_AWKGRAM_TAB_H_INCLUDED */ --- > #endif /* !YY_YY_OUT_AWKGRAM_TAB_H_INCLUDED */ Which is acceptable, the ifdef is based on the path to the file and just there to prevent duplicate imports. Bug: 307824623 Test: ./build/soong/tests/genrule_sandbox_test.py awkgram.tab.h Change-Id: I85c5e0f65e97d18f1aa8b36fa6b19402d2da6c8c
78 lines
2.3 KiB
Go
78 lines
2.3 KiB
Go
// Copyright 2023 Google Inc. All rights reserved.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
package genrule
|
|
|
|
var (
|
|
DepfileAllowList = []string{
|
|
// go/keep-sorted start
|
|
"depfile_allowed_for_test",
|
|
"tflite_support_metadata_schema",
|
|
"tflite_support_spm_config",
|
|
"tflite_support_spm_encoder_config",
|
|
// go/keep-sorted end
|
|
}
|
|
|
|
SandboxingDenyModuleList = []string{
|
|
// go/keep-sorted start
|
|
"CtsApkVerityTestDebugFiles",
|
|
"MultiDexLegacyTestApp_genrule",
|
|
"ScriptGroupTest-rscript",
|
|
"TracingVMProtoStub_cc",
|
|
"TracingVMProtoStub_h",
|
|
"VehicleServerProtoStub_cc",
|
|
"VehicleServerProtoStub_cc@2.0-grpc-trout",
|
|
"VehicleServerProtoStub_cc@default-grpc",
|
|
"VehicleServerProtoStub_h",
|
|
"VehicleServerProtoStub_h@2.0-grpc-trout",
|
|
"VehicleServerProtoStub_h@default-grpc",
|
|
"aidl-golden-test-build-hook-gen",
|
|
"aidl_camera_build_version",
|
|
"android-cts-verifier",
|
|
"angle_commit_id",
|
|
"atest_integration_fake_src",
|
|
"camera-its",
|
|
"checkIn-service-stub-lite",
|
|
"chre_atoms_log.h",
|
|
"cronet_aml_base_android_runtime_jni_headers",
|
|
"cronet_aml_base_android_runtime_jni_headers__testing",
|
|
"cronet_aml_base_android_runtime_unchecked_jni_headers",
|
|
"cronet_aml_base_android_runtime_unchecked_jni_headers__testing",
|
|
"deqp_spvtools_update_build_version",
|
|
"emp_ematch.yacc.c",
|
|
"emp_ematch.yacc.h",
|
|
"gen_corrupt_rebootless_apex",
|
|
"gen_key_mismatch_capex",
|
|
"libbssl_sys_src_nostd",
|
|
"libc_musl_sysroot_bits",
|
|
"libcore-non-cts-tests-txt",
|
|
"pvmfw_fdt_template_rs",
|
|
"r8retrace-dexdump-sample-app",
|
|
"r8retrace-run-retrace",
|
|
"seller-frontend-service-stub-lite",
|
|
"swiftshader_spvtools_update_build_version",
|
|
"ue_unittest_erofs_imgs",
|
|
"vm-tests-tf-lib",
|
|
"vndk_abi_dump_zip",
|
|
// go/keep-sorted end
|
|
}
|
|
|
|
SandboxingDenyPathList = []string{
|
|
// go/keep-sorted start
|
|
"art/test",
|
|
"external/cronet",
|
|
// go/keep-sorted end
|
|
}
|
|
)
|