sandboxed-api/sandboxed_api
Oliver Kunz 86e356b7ee Add Sandbox::AllocateAndTransferToSandboxee utility function.
Create a utility function to copy a hostcode local buffer into the sandboxee. This combines the following steps into one API call:

1) Create a SAPI variable backed with the hostcode local buffer
2) Allocate the SAPI variable in the sandboxee's memory space
3) Transfer the SAPI variable into the sandboxee's memory space

The function returns a `std::unique_ptr` wrapped `sapi:✌️:RemotePtr` which points to the address of the buffer in the sandboxee's memory space.

PiperOrigin-RevId: 611151615
Change-Id: Ie5012bf17826614395d2056d560689fd9e429d75
2024-02-28 10:39:15 -08:00
..
bazel Change the order of including system include paths. 2024-01-08 11:39:17 -08:00
docs Update references to the new documentation 2021-12-14 09:03:29 -08:00
examples Always override forkservers comms_fd in sandboxee 2023-08-30 02:20:56 -07:00
sandbox2 Internal change 2024-02-28 07:37:06 -08:00
tools Integrate LLVM at llvm/llvm-project@3287ae8f65 2023-11-29 10:14:05 -08:00
util Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
BUILD.bazel Add Sandbox::AllocateAndTransferToSandboxee utility function. 2024-02-28 10:39:15 -08:00
call.h Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
client.cc Internal change 2023-08-24 23:55:35 -07:00
CMakeLists.txt Add Sandbox::AllocateAndTransferToSandboxee utility function. 2024-02-28 10:39:15 -08:00
config.cc Run more tests with coverage enabled 2023-08-31 00:44:23 -07:00
config.h Run more tests with coverage enabled 2023-08-31 00:44:23 -07:00
embed_file.cc Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
embed_file.h Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
file_toc.h Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
lenval_core.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
proto_arg.proto Migration of remaining protobufs from proto2 to proto3 2022-03-16 00:43:46 -07:00
proto_helper.cc More complete error handling in SerializeProto 2024-02-28 05:47:15 -08:00
proto_helper.h Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
rpcchannel.cc The current implementation of Sandbox::Terminate results in timeout's being reported to coroner in cases where a Restart or Terminate with graceful exit is requested. 2023-12-08 07:48:18 -08:00
rpcchannel.h Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
sandbox.cc Add Sandbox::AllocateAndTransferToSandboxee utility function. 2024-02-28 10:39:15 -08:00
sandbox.h Add Sandbox::AllocateAndTransferToSandboxee utility function. 2024-02-28 10:39:15 -08:00
sapi_test.cc Add Sandbox::AllocateAndTransferToSandboxee utility function. 2024-02-28 10:39:15 -08:00
testing.cc Add TCMalloc related files to test policy 2023-09-13 09:06:33 -07:00
testing.h Run more tests with coverage enabled 2023-08-31 00:44:23 -07:00
transaction.cc Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
transaction.h Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
var_abstract.cc var_abstract: Use the string representation of Type. 2024-02-21 05:11:57 -08:00
var_abstract.h Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
var_array.h Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
var_int.cc Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
var_int.h Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
var_lenval.cc Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
var_lenval.h Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
var_proto.h Fix sapi:✌️:Proto<T>::FromMessage 2024-02-28 06:01:30 -08:00
var_ptr.h NullPtr: Change SAPI to accept regular nullptr for sandboxed API calls. 2024-01-29 03:23:45 -08:00
var_reg.h Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
var_struct.h Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
var_type.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
var_void.h Bulk IWYU and build_cleaner fixes 2023-08-24 06:23:36 -07:00
vars.h More IWYU annotations 2023-08-25 00:35:09 -07:00