1# Copyright 2025 Google LLC 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# https://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 15# Description: Collection of allowlist tokens that are used to visibility 16# restrict features in Sandbox2. 17 18# sandboxed_api/sandbox2/allowlists:all_syscalls 19add_library(sandbox2_allowlists_all_syscalls ${SAPI_LIB_TYPE} 20 all_syscalls.h 21) 22add_library(sandbox2::allowlists_all_syscalls ALIAS sandbox2_allowlists_all_syscalls) 23target_link_libraries(sandbox2_allowlists_all_syscalls PRIVATE 24 sapi::base 25) 26 27# sandboxed_api/sandbox2/allowlists:namespaces 28add_library(sandbox2_allowlists_namespaces ${SAPI_LIB_TYPE} 29 namespaces.h 30) 31add_library(sandbox2::allowlists_namespaces ALIAS 32 sandbox2_allowlists_namespaces) 33target_link_libraries(sandbox2_allowlists_namespaces PRIVATE 34 sapi::base 35) 36 37# sandboxed_api/sandbox2allowlists:map_exec 38add_library(sandbox2_allowlists_map_exec ${SAPI_LIB_TYPE} 39 map_exec.h 40) 41add_library(sandbox2::allowlists_map_exec ALIAS 42 sandbox2_allowlists_map_exec) 43target_link_libraries(sandbox2_allowlists_map_exec PRIVATE 44 sapi::base 45) 46 47# sandboxed_api/sandbox2/allowlists:seccomp_speculation 48add_library(sandbox2_allowlists_seccomp_speculation ${SAPI_LIB_TYPE} 49 seccomp_speculation.h 50) 51add_library(sandbox2::allowlists_seccomp_speculation ALIAS 52 sandbox2_allowlists_seccomp_speculation) 53target_link_libraries(sandbox2_allowlists_seccomp_speculation PRIVATE 54 sapi::base 55) 56 57# sandboxed_api/sandbox2/allowlists:unrestricted_networking 58add_library(sandbox2_allowlists_unrestricted_networking ${SAPI_LIB_TYPE} 59 unrestricted_networking.h 60) 61add_library(sandbox2::allowlists_unrestricted_networking ALIAS 62 sandbox2_allowlists_unrestricted_networking) 63target_link_libraries(sandbox2_allowlists_unrestricted_networking PRIVATE 64 sapi::base 65) 66 67# sandboxed_api/sandbox2/allowlists:trace_all_syscalls 68add_library(sandbox2_allowlists_trace_all_syscalls ${SAPI_LIB_TYPE} 69 trace_all_syscalls.h 70) 71add_library(sandbox2::allowlists_trace_all_syscalls ALIAS 72 sandbox2_allowlists_trace_all_syscalls) 73target_link_libraries(sandbox2_allowlists_trace_all_syscalls PRIVATE 74 sapi::base 75) 76