mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Move log warning about non-namespaced stacktraces
PiperOrigin-RevId: 553472372 Change-Id: Iba43cba78edd1826afb29f49a7e08e919554ed80
This commit is contained in:
parent
3f9e9a2b25
commit
4d625e521b
|
@ -1213,11 +1213,6 @@ absl::StatusOr<std::unique_ptr<Policy>> PolicyBuilder::TryBuild() {
|
||||||
output->SetNamespace(std::make_unique<Namespace>(
|
output->SetNamespace(std::make_unique<Namespace>(
|
||||||
allow_unrestricted_networking_, std::move(mounts_), hostname_,
|
allow_unrestricted_networking_, std::move(mounts_), hostname_,
|
||||||
allow_mount_propagation_));
|
allow_mount_propagation_));
|
||||||
} else {
|
|
||||||
// Not explicitly disabling them here as this is a technical limitation in
|
|
||||||
// our stack trace collection functionality.
|
|
||||||
LOG(WARNING) << "Using policy without namespaces, disabling stack traces on"
|
|
||||||
<< " crash";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
output->collect_stacktrace_on_signal_ = collect_stacktrace_on_signal_;
|
output->collect_stacktrace_on_signal_ = collect_stacktrace_on_signal_;
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#include "absl/base/macros.h"
|
#include "absl/base/macros.h"
|
||||||
|
#include "absl/log/check.h"
|
||||||
|
#include "absl/log/log.h"
|
||||||
#include "absl/status/statusor.h"
|
#include "absl/status/statusor.h"
|
||||||
#include "sandboxed_api/sandbox2/comms.h"
|
#include "sandboxed_api/sandbox2/comms.h"
|
||||||
#include "sandboxed_api/sandbox2/executor.h"
|
#include "sandboxed_api/sandbox2/executor.h"
|
||||||
|
@ -46,6 +48,10 @@ class Sandbox2 final {
|
||||||
notify_(std::move(notify)) {
|
notify_(std::move(notify)) {
|
||||||
CHECK(executor_ != nullptr);
|
CHECK(executor_ != nullptr);
|
||||||
CHECK(policy_ != nullptr);
|
CHECK(policy_ != nullptr);
|
||||||
|
// This is a technical limitation in our stack trace collection
|
||||||
|
// functionality.
|
||||||
|
LOG(WARNING) << "Using policy without namespaces, disabling stack traces on"
|
||||||
|
<< " crash";
|
||||||
}
|
}
|
||||||
|
|
||||||
Sandbox2(const Sandbox2&) = delete;
|
Sandbox2(const Sandbox2&) = delete;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user