Do not expose stack_trace.h in public API

PiperOrigin-RevId: 381412175
Change-Id: I30729c5af378c358e6400e4b7366d435518ae7d7
This commit is contained in:
Wiktor Garbacz 2021-06-25 00:03:27 -07:00 committed by Copybara-Service
parent fe08d724e4
commit fe2ee5dfac
2 changed files with 7 additions and 3 deletions

View File

@ -281,6 +281,7 @@ cc_library(
"policybuilder.cc",
"sandbox2.cc",
"stack_trace.cc",
"stack_trace.h",
],
hdrs = [
"client.h",
@ -293,7 +294,6 @@ cc_library(
"regs.h",
"result.h",
"sandbox2.h",
"stack_trace.h",
"syscall.h",
],
copts = sapi_platform_copts(),
@ -784,11 +784,16 @@ cc_test(
cc_test(
name = "stack_trace_test",
srcs = ["stack_trace_test.cc"],
srcs = [
"stack_trace.h",
"stack_trace_test.cc",
],
copts = sapi_platform_copts(),
data = ["//sandboxed_api/sandbox2/testcases:symbolize"],
deps = [
":global_forkserver",
":mounts",
":regs",
":sandbox2",
"//sandboxed_api:testing",
"//sandboxed_api/sandbox2/util:bpf_helper",

View File

@ -27,7 +27,6 @@
#include <vector>
#include "sandboxed_api/sandbox2/mounts.h"
#include "sandboxed_api/sandbox2/policy.h"
#include "sandboxed_api/sandbox2/regs.h"
namespace sandbox2 {