blob: 892b5052530ba6a0030a913c029549d0ccb41ba0 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SANDBOX_POLICY_LINUX_SANDBOX_DEBUG_HANDLING_LINUX_H_
#define SANDBOX_POLICY_LINUX_SANDBOX_DEBUG_HANDLING_LINUX_H_
#include "base/macros.h"
#include "sandbox/policy/export.h"
namespace sandbox {
namespace policy {
class SANDBOX_POLICY_EXPORT SandboxDebugHandling {
public:
SandboxDebugHandling() = delete;
SandboxDebugHandling(const SandboxDebugHandling&) = delete;
SandboxDebugHandling& operator=(const SandboxDebugHandling&) = delete;
// Depending on the command line, set the current process as
// non dumpable. Also set any signal handlers for sandbox
// debugging.
static bool SetDumpableStatusAndHandlers();
};
} // namespace policy
} // namespace sandbox
#endif // SANDBOX_POLICY_LINUX_SANDBOX_DEBUG_HANDLING_LINUX_H_