sandbox_debug_handling_linux.h 897 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2015 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef SANDBOX_POLICY_LINUX_SANDBOX_DEBUG_HANDLING_LINUX_H_
  5. #define SANDBOX_POLICY_LINUX_SANDBOX_DEBUG_HANDLING_LINUX_H_
  6. #include "sandbox/policy/export.h"
  7. namespace sandbox {
  8. namespace policy {
  9. class SANDBOX_POLICY_EXPORT SandboxDebugHandling {
  10. public:
  11. SandboxDebugHandling() = delete;
  12. SandboxDebugHandling(const SandboxDebugHandling&) = delete;
  13. SandboxDebugHandling& operator=(const SandboxDebugHandling&) = delete;
  14. // Depending on the command line, set the current process as
  15. // non dumpable. Also set any signal handlers for sandbox
  16. // debugging.
  17. static bool SetDumpableStatusAndHandlers();
  18. };
  19. } // namespace policy
  20. } // namespace sandbox
  21. #endif // SANDBOX_POLICY_LINUX_SANDBOX_DEBUG_HANDLING_LINUX_H_