Skip to content

Commit 159d95f

Browse files
happyCoder92copybara-github
authored andcommitted
MonitorPtrace: Remove no longer needed stacktrace recursion check
Also remove the no longer needed friend declaration. PiperOrigin-RevId: 734115426 Change-Id: I631f8c7d8bb76c5f7e8aecec814f4b82af6daf82
1 parent 9104d71 commit 159d95f

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

sandboxed_api/sandbox2/executor.h

-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ namespace sandbox2 {
3939

4040
// Forward declarations for friend declarations.
4141
class MonitorBase;
42-
class PtraceMonitor;
4342
class StackTracePeer;
4443

4544
// The sandbox2::Executor class is responsible for both creating and executing
@@ -107,7 +106,6 @@ class Executor final {
107106

108107
private:
109108
friend class MonitorBase;
110-
friend class PtraceMonitor;
111109
friend class StackTracePeer;
112110

113111
// Internal constructor for executing libunwind on the given pid

sandboxed_api/sandbox2/monitor_ptrace.cc

-1
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,6 @@ void PtraceMonitor::StateProcessStopped(pid_t pid, int status) {
912912
}
913913

914914
if (ABSL_PREDICT_FALSE(pid == process_.main_pid && should_dump_stack_ &&
915-
executor_->libunwind_sbox_for_pid_ == 0 &&
916915
policy_->GetNamespace())) {
917916
auto stack_trace = [this,
918917
pid]() -> absl::StatusOr<std::vector<std::string>> {

0 commit comments

Comments
 (0)