aboutsummaryrefslogtreecommitdiff
path: root/sandboxed_api/sandbox2/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'sandboxed_api/sandbox2/BUILD.bazel')
-rw-r--r--sandboxed_api/sandbox2/BUILD.bazel28
1 files changed, 26 insertions, 2 deletions
diff --git a/sandboxed_api/sandbox2/BUILD.bazel b/sandboxed_api/sandbox2/BUILD.bazel
index 9e0ade3..3b08b55 100644
--- a/sandboxed_api/sandbox2/BUILD.bazel
+++ b/sandboxed_api/sandbox2/BUILD.bazel
@@ -41,6 +41,23 @@ cc_library(
)
cc_library(
+ name = "trace_all_syscalls",
+ hdrs = ["trace_all_syscalls.h"],
+ copts = sapi_platform_copts(),
+ visibility = [
+ "//sandboxed_api/sandbox2:__pkg__",
+ ],
+)
+
+cc_library(
+ name = "testonly_trace_all_syscalls",
+ testonly = True,
+ hdrs = ["trace_all_syscalls.h"],
+ copts = sapi_platform_copts(),
+ visibility = ["//visibility:public"],
+)
+
+cc_library(
name = "allow_unrestricted_networking",
hdrs = ["allow_unrestricted_networking.h"],
copts = sapi_platform_copts(),
@@ -109,15 +126,18 @@ cc_library(
srcs = [
"syscall.cc",
"syscall_defs.cc",
+ ],
+ hdrs = [
+ "syscall.h",
"syscall_defs.h",
],
- hdrs = ["syscall.h"],
copts = sapi_platform_copts(),
visibility = ["//visibility:public"],
deps = [
":util",
"//sandboxed_api:config",
"@com_google_absl//absl/algorithm:container",
+ "@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
@@ -237,7 +257,6 @@ cc_library(
":result",
":syscall",
":util",
- "//sandboxed_api:config",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/log",
],
@@ -529,6 +548,7 @@ cc_library(
":stack_trace",
":syscall",
":util",
+ "//sandboxed_api/sandbox2/network_proxy:client",
"//sandboxed_api/sandbox2/network_proxy:server",
"//sandboxed_api/util:file_helpers",
"//sandboxed_api/util:raw_logging",
@@ -560,6 +580,7 @@ cc_library(
":namespace",
":policy",
":syscall",
+ ":trace_all_syscalls",
":violation_cc_proto",
"//sandboxed_api:config",
"//sandboxed_api/sandbox2/network_proxy:filtering",
@@ -921,6 +942,7 @@ cc_test(
deps = [
":comms",
":sandbox2",
+ ":trace_all_syscalls",
"//sandboxed_api:testing",
"@com_google_absl//absl/log",
"@com_google_absl//absl/strings",
@@ -957,6 +979,7 @@ cc_test(
copts = sapi_platform_copts(),
data = [
"//sandboxed_api/sandbox2/testcases:abort",
+ "//sandboxed_api/sandbox2/testcases:custom_fork",
"//sandboxed_api/sandbox2/testcases:minimal",
"//sandboxed_api/sandbox2/testcases:sleep",
"//sandboxed_api/sandbox2/testcases:starve",
@@ -967,6 +990,7 @@ cc_test(
"no_qemu_user_mode",
],
deps = [
+ ":fork_client",
":sandbox2",
"//sandboxed_api:config",
"//sandboxed_api:testing",