sandboxed-api/sandboxed_api/sandbox2
Christian Blichmann 2a9320dbac Update/simplify linker flags for testcases
- Bazel: Use "incompatible" flag to fix fully static linking. The flag will
  become the default in Bazel 4.0.
- Bazel: Deduplicate features into `FULLY_STATIC_FEATURES` variable
- CMake: Remove the testcase properties. `sapi::base` already sets
  `POSITION_INDEPENDENT_CODE`. Note that `-pie` is incompatible with `-static`
  and `-static-pie` requires GCC 8 and GLIBC 2.27.

PiperOrigin-RevId: 346952478
Change-Id: I7a317c90a3bec9691b13df1a00e3fddf4481df4d
2020-12-11 01:12:05 -08:00
..
examples Initial changes to support AArch64 2020-09-11 06:34:27 -07:00
network_proxy Initial changes to support AArch64 2020-09-11 06:34:27 -07:00
testcases Update/simplify linker flags for testcases 2020-12-11 01:12:05 -08:00
unwind Skip entries with zero inode when parsing /proc/PID/maps 2020-11-25 06:46:39 -08:00
util Use file helpers in minielf_test 2020-12-11 00:48:23 -08:00
bpfdisassembler.cc Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
bpfdisassembler.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
buffer_test.cc Initial changes to support AArch64 2020-09-11 06:34:27 -07:00
buffer.cc Change int64 to size_t in Buffer 2020-10-01 06:45:38 -07:00
buffer.h Change int64 to size_t in Buffer 2020-10-01 06:45:38 -07:00
BUILD.bazel Do not fail if forkserver is disabled by env when lib_ctor is used 2020-12-10 02:49:54 -08:00
client.cc Replace std::unique_ptr<uint8_t[]> with vector 2020-11-05 02:03:46 -08:00
client.h Replace std::unique_ptr<uint8_t[]> with vector 2020-11-05 02:03:46 -08:00
CMakeLists.txt Do not fail if forkserver is disabled by env when lib_ctor is used 2020-12-10 02:49:54 -08:00
comms_test.cc Change int64 to size_t in Buffer 2020-10-01 06:45:38 -07:00
comms_test.proto Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
comms.cc Use size_t/uintptr_t instead of uintptr_t or uint64_t where appropriate 2020-09-18 07:45:03 -07:00
comms.h Change int64 to size_t in Buffer 2020-10-01 06:45:38 -07:00
config.h Initial changes to support AArch64 2020-09-11 06:34:27 -07:00
executor.cc Start global fork-server on demand 2020-11-05 08:48:03 -08:00
executor.h Extract ForkClient to a separate target 2020-07-17 04:54:54 -07:00
fork_client.cc Minor ForkClient improvements 2020-10-05 05:10:16 -07:00
fork_client.h Start global fork-server on demand 2020-11-05 08:48:03 -08:00
forkingclient.cc Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
forkingclient.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
forkserver_bin.cc Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
forkserver_test.cc Start global fork-server on demand 2020-11-05 08:48:03 -08:00
forkserver.cc Start global fork-server on demand 2020-11-05 08:48:03 -08:00
forkserver.h Extract ForkClient to a separate target 2020-07-17 04:54:54 -07:00
forkserver.proto Internal change 2020-01-31 05:39:25 -08:00
global_forkclient_lib_ctor.cc Do not fail if forkserver is disabled by env when lib_ctor is used 2020-12-10 02:49:54 -08:00
global_forkclient.cc Do not fail if forkserver is disabled by env when lib_ctor is used 2020-12-10 02:49:54 -08:00
global_forkclient.h Do not fail if forkserver is disabled by env when lib_ctor is used 2020-12-10 02:49:54 -08:00
ipc_test.cc Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
ipc.cc Now network proxy server supports IP filtering. API to policybuilder is added to make a list of allowed pairs of allowed IP, mask and port where mask and port are optional. 2020-02-20 07:45:44 -08:00
ipc.h Now network proxy server supports IP filtering. API to policybuilder is added to make a list of allowed pairs of allowed IP, mask and port where mask and port are optional. 2020-02-20 07:45:44 -08:00
limits_test.cc Introduce config header to centralize CPU architecture checks 2020-09-10 05:48:00 -07:00
limits.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
logserver.cc Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
logserver.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
logserver.proto Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
logsink.cc Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
logsink.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
monitor.cc Introduce config header to centralize CPU architecture checks 2020-09-10 05:48:00 -07:00
monitor.h Now network proxy server supports IP filtering. API to policybuilder is added to make a list of allowed pairs of allowed IP, mask and port where mask and port are optional. 2020-02-20 07:45:44 -08:00
mounts_test.cc Cleanup calls to sapi::StatusOr<>::ValueOrDie() 2020-04-02 07:42:45 -07:00
mounts.cc Initial changes to support AArch64 2020-09-11 06:34:27 -07:00
mounts.h Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
mounttree.proto Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
namespace_test.cc Introduce config header to centralize CPU architecture checks 2020-09-10 05:48:00 -07:00
namespace.cc Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
namespace.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
notify_test.cc Initial changes to support AArch64 2020-09-11 06:34:27 -07:00
notify.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
policy_test.cc Permit sandboxee's bpf() to fail 2020-12-02 08:38:32 -08:00
policy.cc Permit sandboxee's bpf() to fail 2020-12-02 08:38:32 -08:00
policy.h Permit sandboxee's bpf() to fail 2020-12-02 08:38:32 -08:00
policybuilder_test.cc Initial changes to support AArch64 2020-09-11 06:34:27 -07:00
policybuilder.cc Permit sandboxee's bpf() to fail 2020-12-02 08:38:32 -08:00
policybuilder.h Permit sandboxee's bpf() to fail 2020-12-02 08:38:32 -08:00
README.md Corrects typo in link 2019-10-07 02:36:35 -07:00
regs.cc Initial changes to support AArch64 2020-09-11 06:34:27 -07:00
regs.h Initial changes to support AArch64 2020-09-11 06:34:27 -07:00
result.cc Refactor stack trace handling 2020-07-20 00:24:40 -07:00
result.h Introduce config header to centralize CPU architecture checks 2020-09-10 05:48:00 -07:00
sandbox2_test.cc Introduce config header to centralize CPU architecture checks 2020-09-10 05:48:00 -07:00
sandbox2.cc Internal BUILD refactoring 2020-09-03 07:40:33 -07:00
sandbox2.h Internal BUILD refactoring 2020-09-03 07:40:33 -07:00
sanitizer_test.cc Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
sanitizer.cc Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
sanitizer.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
stack_trace_test.cc Start global fork-server on demand 2020-11-05 08:48:03 -08:00
stack_trace.cc Fix dynamic binary startup on PPC and newer glibc (> 2.19) 2020-09-14 01:18:33 -07:00
stack_trace.h Refactor stack trace handling 2020-07-20 00:24:40 -07:00
syscall_defs.cc Use binary search in syscall defs 2020-11-25 06:15:29 -08:00
syscall_defs.h Introduce config header to centralize CPU architecture checks 2020-09-10 05:48:00 -07:00
syscall_test.cc Introduce config header to centralize CPU architecture checks 2020-09-10 05:48:00 -07:00
syscall.cc Initial changes to support AArch64 2020-09-11 06:34:27 -07:00
syscall.h Introduce config header to centralize CPU architecture checks 2020-09-10 05:48:00 -07:00
testing.cc Move filewrapper to tools directory 2020-05-29 05:40:52 -07:00
testing.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
util_test.cc Migrate to open-source absl::StatusOr<> 2020-09-03 07:40:48 -07:00
util.cc Cleans up statusor.h includes. 2020-10-15 13:25:30 -07:00
util.h Internal BUILD refactoring 2020-09-03 07:40:33 -07:00
violation.proto Initial changes to support AArch64 2020-09-11 06:34:27 -07:00

Sandbox2

Sandbox2 is a C++ security sandbox for Linux which can be used to run untrusted programs or portions of programs in confined environments. The idea is that the runtime environment is so restricted that security bugs such as buffer overflows in the protected region cause no harm.

Documentation

Detailed developer documentation is available on the Google Developers site for Sandboxed API under Sandbox2.

There is also a Getting Started guide for Sandbox2.